diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1301/CH5/EX5.20/ex5_20.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1301/CH5/EX5.20/ex5_20.sce')
-rwxr-xr-x | 1301/CH5/EX5.20/ex5_20.sce | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/1301/CH5/EX5.20/ex5_20.sce b/1301/CH5/EX5.20/ex5_20.sce index 691351143..844030a49 100755 --- a/1301/CH5/EX5.20/ex5_20.sce +++ b/1301/CH5/EX5.20/ex5_20.sce @@ -1,6 +1,7 @@ -clc;
-P=10^8; //power in Watt
-t=60*60*24; //t in seconds for 1 day
-E=P*t; //calculating energy in Joule using E=P*t
-m=E/(c*c); //calculating m in kg using Einstein's equation:E=m*c*c
+clc; +P=10^8; //power in Watt +c = 3*10^8; +t=60*60*24; //t in seconds for 1 day +E=P*t; //calculating energy in Joule using E=P*t +m=E/(c*c); //calculating m in kg using Einstein's equation:E=m*c*c disp(m,"Mass in kg = "); //displaying result
\ No newline at end of file |