diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /24/CH29/EX29.4/Example29_4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '24/CH29/EX29.4/Example29_4.sce')
-rwxr-xr-x | 24/CH29/EX29.4/Example29_4.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/24/CH29/EX29.4/Example29_4.sce b/24/CH29/EX29.4/Example29_4.sce new file mode 100755 index 000000000..3bea29a04 --- /dev/null +++ b/24/CH29/EX29.4/Example29_4.sce @@ -0,0 +1,17 @@ +exec('degree_rad.sci', -1)
+
+//Given that
+e = 1.6*10^-19
+K = 22.5*e //in J
+B = 4.55*10^-4 //in T
+theta = dtor(65.5)
+m = 9.11*10^-31 //in kg
+
+//Sample Problem 29-4
+printf("**Sample Problem 29-4**\n")
+q = e
+v = sqrt(2*K/m)
+r = m*v*sin(theta)/(q*B)
+T = 2*%pi*r/(v*sin(theta))
+p = v*cos(theta)*T
+printf("The pitch of the electron is equal to %fm", p)
\ No newline at end of file |