发布时间:2015-12-26 19:33:56
用MPI求解梯形积分(上)版本一:(固定a,b,n值,使用MPI6个基本函数)#include<stdio.h>#include<mpi.h>double f(double x){ return x*x;}double Trap(double left_side,double right_side,int local_count,double h){int i;double estimate,temp;double left1,right1;left1=f(left_side).........【阅读全文】