diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1026/CH10/EX10.13 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1026/CH10/EX10.13')
-rwxr-xr-x | 1026/CH10/EX10.13/Example10_13.sce | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/1026/CH10/EX10.13/Example10_13.sce b/1026/CH10/EX10.13/Example10_13.sce index 912e85bac..923d099ff 100755 --- a/1026/CH10/EX10.13/Example10_13.sce +++ b/1026/CH10/EX10.13/Example10_13.sce @@ -1,41 +1,41 @@ -//chapter10,Example10_13,pg 276
-
-e=1.6*10^-19
-
-Va=150
-
-m=9.1*10^-31
-
-vx=sqrt((2*e*Va)/m)
-
-V=20
-
-d=10^-2
-
-ay=(e/m)*(V/d)
-
-l=10*10^-2
-
-vy=ay*(l/vx)
-
-theta=atan(vy/vx)
-
-theta=theta*(180/%pi)//converting into degree
-
-theta=theta*(%pi/180)//converting into radian
-
-Y=D*tan(theta)
-
-S=(Y/V)
-
-printf("velocity of electron reaching field vx=%.2f m/sec\n",vx)
-
-printf("\nacceleration due to electric field ay=%.2f m/sec2\n",ay)
-
-printf("\nfinal velocity attained by deflecting field vy=%.2f m/sec\n",vy)
-
-printf("\nangle of deflection theta=%.2f deg.\n",theta)
-
-printf("\ndeflection on screen Y=%.2f m\n",Y)
-
+//chapter10,Example10_13,pg 276 + +e=1.6*10^-19 + +Va=150 + +m=9.1*10^-31 + +vx=sqrt((2*e*Va)/m) + +V=20 + +d=10^-2 + +ay=(e/m)*(V/d) + +l=10*10^-2 + +vy=ay*(l/vx) + +theta=atan(vy/vx) + +theta=theta*(180/%pi)//converting into degree + +theta=theta*(%pi/180)//converting into radian + +Y=d*tan(theta) + +S=(Y/V) + +printf("velocity of electron reaching field vx=%.2f m/sec\n",vx) + +printf("\nacceleration due to electric field ay=%.2f m/sec2\n",ay) + +printf("\nfinal velocity attained by deflecting field vy=%.2f m/sec\n",vy) + +printf("\nangle of deflection theta=%.2f deg.\n",theta) + +printf("\ndeflection on screen Y=%.2f m\n",Y) + printf("\ndeflection senstivity S=%.2f m/volt\n",S)
\ No newline at end of file |