summaryrefslogtreecommitdiff
path: root/1271/CH11/EX11.14/example11_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH11/EX11.14/example11_14.sce
downloadScilab-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/CH11/EX11.14/example11_14.sce')
-rwxr-xr-x1271/CH11/EX11.14/example11_14.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1271/CH11/EX11.14/example11_14.sce b/1271/CH11/EX11.14/example11_14.sce
new file mode 100755
index 000000000..cae313967
--- /dev/null
+++ b/1271/CH11/EX11.14/example11_14.sce
@@ -0,0 +1,10 @@
+clc
+// Given that
+m = 1.67e-27 // mass of electron in kg
+m_ = 9.1e-31 // rest mass of electron in kg
+// Sample Problem 14 on page no. 11.23
+printf("\n # PROBLEM 14 # \n")
+printf(" Standard formula used \n")
+printf(" m = m_0/((1-v^2/c^2)^1/2) \n ")
+v = 3e8 * sqrt(1 - (m_ / m)^2)
+printf("\n Velocity of electron is %f meter/sec.",v)