diff options
Diffstat (limited to '416/CH9/EX9.1/exp9_1.sce')
-rwxr-xr-x | 416/CH9/EX9.1/exp9_1.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/416/CH9/EX9.1/exp9_1.sce b/416/CH9/EX9.1/exp9_1.sce new file mode 100755 index 000000000..f3de3abe9 --- /dev/null +++ b/416/CH9/EX9.1/exp9_1.sce @@ -0,0 +1,8 @@ +clear
+clc
+disp("example 9.1")
+m=1*10^-3//mass of 1 grm in kgs
+c=3*10^8
+e=m*c^2;
+E=e/(1000*3600)
+printf("energy equivalent of 1 gram is %dkWh",E)
|