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 --- 1271/CH6/EX6.1/1.txt | 3 +++ 1271/CH6/EX6.1/example6_1.sce | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 1271/CH6/EX6.1/1.txt create mode 100755 1271/CH6/EX6.1/example6_1.sce (limited to '1271/CH6/EX6.1') 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) -- cgit