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.1 | |
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.1')
-rwxr-xr-x | 1271/CH6/EX6.1/1.txt | 3 | ||||
-rwxr-xr-x | 1271/CH6/EX6.1/example6_1.sce | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/1271/CH6/EX6.1/1.txt b/1271/CH6/EX6.1/1.txt new file mode 100755 index 000000000..033438c23 --- /dev/null +++ b/1271/CH6/EX6.1/1.txt @@ -0,0 +1,3 @@ + Energy gained by electron = 8.000000e-17 J,
+ Speed of electron = 1.333333e+07 meter/sec,
+ Momentum of electron = 1.200000e-23 kg-meter/sec
diff --git a/1271/CH6/EX6.1/example6_1.sce b/1271/CH6/EX6.1/example6_1.sce new file mode 100755 index 000000000..ca62c8ccd --- /dev/null +++ b/1271/CH6/EX6.1/example6_1.sce @@ -0,0 +1,12 @@ +clc +// Given that +V = 500 // voltage across the electrode in eV +m = 9e-31 // mass of electron in kg +e = 1.6e-19 // charge on an electron in coulomb +// Sample Problem 1 on page no. 6.20 +printf("\n # PROBLEM 1 # \n") +E = e * V +v = sqrt((2 * e * V) / m) +p = m * v +printf("\n Standard formula used \n E = e * V. \n v = sqrt((2 * e * V) / m). \n p = m * v. \n ") +printf("\n Energy gained by electron = %e J,\n Speed of electron = %e meter/sec,\n Momentum of electron = %e kg-meter/sec",E,v,p) |