diff options
Diffstat (limited to '1301/CH5/EX5.20/ex5_20.sce')
-rwxr-xr-x | 1301/CH5/EX5.20/ex5_20.sce | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/1301/CH5/EX5.20/ex5_20.sce b/1301/CH5/EX5.20/ex5_20.sce new file mode 100755 index 000000000..691351143 --- /dev/null +++ b/1301/CH5/EX5.20/ex5_20.sce @@ -0,0 +1,6 @@ +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
+disp(m,"Mass in kg = "); //displaying result
\ No newline at end of file |