作者ko7751 (雨茜)
看板FJU-STAT95B
标题[闲聊] 用脑时间又来了
时间Tue Apr 13 15:32:15 2010
#include <C:\devcpp\all.h>
double normal_app(double x)
{ double n1=10; double n2=14;
double u=2.0*n1*n2/(n1+n2)+1;
double v=2*n1*n2*(2*n1*n2-n1-n2)/(pow(n1+n2,2.0)*(n1+n2-1));
return nor_den(x,u,sqrt(v));
}
int main()
{
long int i, j;
srand((unsigned)time(NULL));
cout.setf(ios::fixed); cout.precision(10);
// $$$$$$$$ Start your program here $$$$$$$$$$$$$$$$$$$$$
Univar x=time_axis(0,25,1);
multi_dis G(x);
G.push_function(normal_app);
G.print_to_file("c:\\devcpp\\G.dat",4);
// $$$$$$$ End of your program $$$$$$$$$$$$$$$$$$$$$$$$$
cin.get();
return 0;
}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.136.161.81
1F:推 weiching0323:USE YOUR BRAIN. 04/13 19:20
2F:推 timmac:还好我拿到9学分过了 不用动脑XDDDDDDDDDDD 04/13 22:03