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 /273/CH4/EX4.5/ex4_5.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 '273/CH4/EX4.5/ex4_5.sce')
-rwxr-xr-x | 273/CH4/EX4.5/ex4_5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/273/CH4/EX4.5/ex4_5.sce b/273/CH4/EX4.5/ex4_5.sce new file mode 100755 index 000000000..610153cc7 --- /dev/null +++ b/273/CH4/EX4.5/ex4_5.sce @@ -0,0 +1,13 @@ +clc;clear; +//Example 4.5 +//motion of an electron in a uniform magnetic field acting at an angle +//given values +v=3*10^7;//electron speed +B=.23;//magnetic field in wb/m^2 +q=45*%pi/180;//in degrees,angle in which electron enter field +e=1.6*10^-19;//in C +m=9.1*10^-31;//in kg +R=m*v*sin(q)/(e*B);//in m +disp(R,'radius of helical path is:') +p=2*%pi*m*v*cos(q)/(e*B);//in m +disp(p,'pitch of helical path(in m) is:')
\ No newline at end of file |