summaryrefslogtreecommitdiff
path: root/1271/CH11/EX11.20/example11_20.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.20/example11_20.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.20/example11_20.sce')
-rwxr-xr-x1271/CH11/EX11.20/example11_20.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1271/CH11/EX11.20/example11_20.sce b/1271/CH11/EX11.20/example11_20.sce
new file mode 100755
index 000000000..57be0e938
--- /dev/null
+++ b/1271/CH11/EX11.20/example11_20.sce
@@ -0,0 +1,9 @@
+clc
+// Given that
+r = 3 / 2 // ratio of mass of metre stick to the rest mass of metre stick
+// Sample Problem 20 on page no. 11.26
+printf("\n # PROBLEM 20 # \n")
+printf(" Standard formula used \n")
+printf(" m = m_0/((1-v^2/c^2)^1/2) \n l = l_0/((1-v^2/c^2)^1/2) \n")
+l = 1 * (1 / r)
+printf("\n Length of meter stick is %f meter if mass is %f times of its rest mass.",l,r)