密立根油滴实验数据处理(平衡法和动态法)
平衡法
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33//平衡法 #include <iostream> #include <cmath> using namespace std; int main() { float q,t,r,u,x,x1,x2,n1,e1,n2,p1,E; float p2=981,g=9.794,l=1.6e-3,b=8.22e-3,p=0.10133e6,d=5.00e-3,n=1.83e-5,p0=1.293,e0=1.602e-19; cout<<"t下降,U平衡"<<endl; cin>>t>>u; p1=p2-p0; r=sqrt(9*n*l/(2*p1*g*t)); x1=((n*l)/(t*(1+b/(p*r)))); x2=x1*x1*x1; x=sqrt(x2); q=18*3.1415926535898*x*d/(sqrt(2*p1*g)*u); n1=q/(1.602e-19); if(n1-int(n1)>=0.5) {n2=int(n1)+1;} else if(n1-int(n1)<0.5||n1-int(n1)>=0) {n2=int(n1);} else {cout<<"error";} e1=q/n2; E=(e1-e0)/e0; cout<<"r="<<r<<endl; cout<<"q="<<q<<endl; cout<<"n="<<n1<<endl; cout<<"e="<<e1<<endl; cout<<"误差:"<<E<<endl; return 0; }
动态法
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33#include <iostream> #include <cmath> using namespace std; int main() { float q,t,r,u,x,x1,x2,n1,e1,n2,p1,tg,k,E; float p2=981,g=9.794,l=1.6e-3,b=8.22e-3,p=0.10133e6,d=5.00e-3,n=1.83e-5,p0=1.293,e0=1.602e-19; cout<<"t下降,t上升,U上升"<<endl; cin>>tg>>t>>u; p1=p2-p0; r=sqrt(9*n*l/(2*p1*g*tg)); k=18*3.1415926*d*l/(sqrt(2*p1*g)); x1=((n)/((1+b/(p*r)))); x2=x1*x1*x1; x=sqrt(x2); q=k*x*(1/t+1/tg)*sqrt(l/tg)*(1/u); n1=q/(1.602e-19); if(n1-int(n1)>=0.5) {n2=int(n1)+1;} else if(n1-int(n1)<0.5||n1-int(n1)>=0) {n2=int(n1);} else {cout<<"error";} e1=q/n2; E=(e1-e0)/e0; cout<<"k="<<k<<endl; cout<<"r="<<r<<endl; cout<<"q="<<q<<endl; cout<<"n="<<n1<<endl; cout<<"e="<<e1<<endl; cout<<"误差:"<<E<<endl; return 0; }
具体固定参数可按需自行修改,如下落距离l。
最后
以上就是疯狂鱼最近收集整理的关于密立根油滴实验数据处理(平衡法和动态法)密立根油滴实验数据处理(平衡法和动态法)的全部内容,更多相关密立根油滴实验数据处理(平衡法和动态法)密立根油滴实验数据处理(平衡法和动态法)内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复