summaryrefslogtreecommitdiff
path: root/896/CH4/EX4.6/6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /896/CH4/EX4.6/6.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 '896/CH4/EX4.6/6.sce')
-rwxr-xr-x896/CH4/EX4.6/6.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/896/CH4/EX4.6/6.sce b/896/CH4/EX4.6/6.sce
new file mode 100755
index 000000000..6b1af4478
--- /dev/null
+++ b/896/CH4/EX4.6/6.sce
@@ -0,0 +1,12 @@
+clc
+//Example 4.6
+//calculate the mass consumed in a nuclear reactor per unit time
+//let D=d/dt
+DQ=-13*10^8;//J/s
+DW=7*10^8;//J/s
+//Dm=(DQ-DW)/c^2 where c is velocity of light sice E=mc^2
+c=3*10^8;//m/s
+c1=3;//velocity of light without power
+pow=8//power of 10 in speed of light
+Dm=(DW-DQ)/c/c1//kg/s
+printf("the mass consumed in a nuclear reactor per unit time is %f * 10^(-%d) kg/s",Dm,pow); \ No newline at end of file