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 /1271/CH6/EX6.6/example6_6.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 '1271/CH6/EX6.6/example6_6.sce')
-rwxr-xr-x | 1271/CH6/EX6.6/example6_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1271/CH6/EX6.6/example6_6.sce b/1271/CH6/EX6.6/example6_6.sce new file mode 100755 index 000000000..b5f5af65c --- /dev/null +++ b/1271/CH6/EX6.6/example6_6.sce @@ -0,0 +1,12 @@ +clc +// Given that +M = 9.1e-31 // mass of electron in kg +E = 1.6e-15 // energy of electron in J +B = 5e-5 // magnetic field in tesla +e = 1.6e-19 // charge on an electron in coulomb +// Sample Problem 6 on page no. 6.23 +printf("\n # PROBLEM 6 # \n") +v = sqrt((2 * E) / M) +r = (M * v) / (e * B) +printf("\n Standard formula used \n v = sqrt((2 * E) / M). \n r = (M * v) / (e * B). \n") +printf("\n Larmoure radius = %f meter",r) |