欢迎来到天天文库
浏览记录
ID:55316982
大小:10.39 KB
页数:2页
时间:2020-05-09
《密立根油滴实验动态法计算代码.docx》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、//北京理工大学密立根油滴实验动态法表格计算C语言代码#include#include#definerou981#defineg9.801#defineniu1.83e-5#defineL1.5e-3#defined5e-3#definep1.013e5#defineb8.22e-3#definepai3.intmain(){doublea[7],k,q,te[7],tg[7],ve[7],vg[7],u;inti=0;printf("InputU:");sca
2、nf("%lf",&u);while(i<7){printf("Inputtg,te");scanf("%lf%lf",&tg[i],&te[i]);vg[i]=1.5e-3/tg[i];ve[i]=1.5e-3/te[i];printf("vg=%0.20lfve=%0.20lf",vg[i],ve[i]);i++;}i=0;doubletem;doublesuma=0,sumk=0,sumq=0;while(i<7){tem=0;tem=(9*niu*vg[i])/(2*rou*g);a
3、[i]=sqrt(tem);printf("a=%0.20lf",a[i]);k=18*pai/sqrt(2*rou*g)*pow(niu*L/(1+b/(p*a[i])),1.5)*d;printf("k=%0.20lf",k);q=k*(1/tg[i]+1/te[i])*sqrt(1/tg[i])/u;printf("q=%0.20lf",q);suma+=a[i];sumk+=k;sumq+=q;i++;}printf("a=%0.20lfk=%0.20lfq=%0.20lf"
4、,suma/7,sumk/7,sumq/7);return0;}
此文档下载收益归作者所有