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 /1958/CH15/EX15.5/Chapter15_example5.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 '1958/CH15/EX15.5/Chapter15_example5.sce')
-rwxr-xr-x | 1958/CH15/EX15.5/Chapter15_example5.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1958/CH15/EX15.5/Chapter15_example5.sce b/1958/CH15/EX15.5/Chapter15_example5.sce new file mode 100755 index 000000000..06643f2d1 --- /dev/null +++ b/1958/CH15/EX15.5/Chapter15_example5.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Input data
+e=(1.6*10^-19)//Charge of the proton in C
+m=(1.67*10^-27)//Mass of the proton in kg
+B=0.8//Magnetic field strength in T
+v=[4*10^6,3*10^6]//Velocity of charged particle in vxi+vyj form in m/s
+
+//Calculations
+p=(v(1)*2*3.14*m)/(e*B)//Pitch of the helix in m
+R=(m*v(2))/(e*B)//Radius of the trajectory in m
+
+//Output
+printf('The pitch of the helix is %3.3f m \n Radius of the trajectory is %3.5f m',p,R)
|