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 /1535/CH8/EX8.9/Ch08Ex9.sci | |
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 '1535/CH8/EX8.9/Ch08Ex9.sci')
-rwxr-xr-x | 1535/CH8/EX8.9/Ch08Ex9.sci | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1535/CH8/EX8.9/Ch08Ex9.sci b/1535/CH8/EX8.9/Ch08Ex9.sci new file mode 100755 index 000000000..5360e92cc --- /dev/null +++ b/1535/CH8/EX8.9/Ch08Ex9.sci @@ -0,0 +1,10 @@ +// Scilab Code Ex8.9: Page-174 (2010)
+c = 1; // For simplicity assume speed of light to be unity, m/s
+m0 = 1; // For simplicity assume rest mass to be unity, kg
+m = (20/100+1)*m0; // Mass in motion, kg
+// As m = m0/sqrt(1-(u/c)^2), solving for u
+u = sqrt(1-(m0/m)^2)*c; // Speed of moving mass, m/s
+printf("\nThe speed of moving body, u = %5.3fc", u);
+
+// Result
+// The speed of moving body, u = 0.553c
|