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 /416/CH9/EX9.1 | |
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 '416/CH9/EX9.1')
-rwxr-xr-x | 416/CH9/EX9.1/9_1ans.txt | 3 | ||||
-rwxr-xr-x | 416/CH9/EX9.1/exp9_1.sce | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/416/CH9/EX9.1/9_1ans.txt b/416/CH9/EX9.1/9_1ans.txt new file mode 100755 index 000000000..cc4c0000a --- /dev/null +++ b/416/CH9/EX9.1/9_1ans.txt @@ -0,0 +1,3 @@ +
+ example 9.1
+energy equivalent of 1 gram is 25000000kWh
\ No newline at end of file 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)
|