From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1958/CH15/EX15.5/Chapter15_example5.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1958/CH15/EX15.5/Chapter15_example5.sce (limited to '1958/CH15/EX15.5/Chapter15_example5.sce') 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) -- cgit