summaryrefslogtreecommitdiff
path: root/896/CH4/EX4.6/6.sce
diff options
context:
space:
mode:
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