summaryrefslogtreecommitdiff
path: root/1271/CH11/EX11.17
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.17
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.17')
-rwxr-xr-x1271/CH11/EX11.17/17.txt2
-rwxr-xr-x1271/CH11/EX11.17/example11_17.sce11
2 files changed, 13 insertions, 0 deletions
diff --git a/1271/CH11/EX11.17/17.txt b/1271/CH11/EX11.17/17.txt
new file mode 100755
index 000000000..c8aab0507
--- /dev/null
+++ b/1271/CH11/EX11.17/17.txt
@@ -0,0 +1,2 @@
+ Velocity of particle if kinetic energy is 3 times of rest mass energy is 2.904738e+08 meter/sec.
+ Velocity of particle if kinetic energy is 1 times of rest mass energy is 2.598076e+08 meter/sec.
diff --git a/1271/CH11/EX11.17/example11_17.sce b/1271/CH11/EX11.17/example11_17.sce
new file mode 100755
index 000000000..a3322c81b
--- /dev/null
+++ b/1271/CH11/EX11.17/example11_17.sce
@@ -0,0 +1,11 @@
+clc
+// Given that
+r1 = 3 // ratio of kinetic energy of body to its rest mass in first case
+r2 = 1 // ratio of kinetic energy of body to its rest mass in second case
+// Sample Problem 17 on page no. 11.24
+printf("\n # PROBLEM 17 # \n")
+printf(" Standard formula used \n")
+printf(" m = m_0/((1-v^2/c^2)^1/2) \n KE = (m-m_0)*c^2 \n")
+v1 = 3e8 * sqrt(1 - (1 / (r1 + 1))^2)
+v2 = 3e8 * sqrt(1 - (1 / (r2 + 1))^2)
+printf("\n Velocity of particle if kinetic energy is %d times of rest mass energy is %e meter/sec.\n Velocity of particle if kinetic energy is %d times of rest mass energy is %e meter/sec.\n",r1,v1,r2,v2)