给定极限的上限和下限,计算cos的积分值;
将积分区域,平均分发给每个进程,每个进程计算其中的一区域,最后将所得结果发送给根进程;
其中p表示进程的个数;
n表示划分的每个积分区域,其中的小矩形的的个数;
h表示每个小矩形的宽度;
每次所取的x的值为,当前小矩形的中点值;
给定极限的上限和下限,计算cos的积分值;
将积分区域,平均分发给每个进程,每个进程计算其中的一区域,最后将所得结果发送给根进程;
其中p表示进程的个数;
n表示划分的每个积分区域,其中的小矩形的的个数;
h表示每个小矩形的宽度;
每次所取的x的值为,当前小矩形的中点值;
此案例用calendar模块计算每月特定事件对应的日期。例如,某单位小组会议在每月的第二个星期四召开,计算一年内这个日子
给定100的数据,计算这100个数据的平均值
计算100个整数的最大值和最小值 汇编语言
传送门
【代码】Calculating Sine in Triangle。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M