看板 FJU-STAT95B 關於我們 聯絡資訊
#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
weiching0323:USE YOUR BRAIN. 04/13 19:20
timmac:還好我拿到9學分過了 不用動腦XDDDDDDDDDDD 04/13 22:03