From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 1026/CH10/EX10.13/Example10_13.sce | 80 +++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to '1026/CH10/EX10.13') 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 -- cgit