summaryrefslogtreecommitdiff
path: root/1301/CH5
diff options
context:
space:
mode:
Diffstat (limited to '1301/CH5')
-rwxr-xr-x1301/CH5/EX5.14/ex5_14.sce13
-rwxr-xr-x1301/CH5/EX5.20/ex5_20.sce11
2 files changed, 13 insertions, 11 deletions
diff --git a/1301/CH5/EX5.14/ex5_14.sce b/1301/CH5/EX5.14/ex5_14.sce
index f2e562041..05d5926b0 100755
--- a/1301/CH5/EX5.14/ex5_14.sce
+++ b/1301/CH5/EX5.14/ex5_14.sce
@@ -1,7 +1,8 @@
-clc;
-w=2500; //weight in lb
-v=40; //velocity in mi/hr
-m=w/g; //calculating mass in slugs
-v=40*1.47; //converting velocity in ft/sec
-KE=(1/2)*(m*v*v); //calculating Kinetic energy in ft.lb
+clc;
+w=2500; //weight in lb
+v=40; //velocity in mi/hr
+g = 32.2;
+m=w/g; //calculating mass in slugs
+v=40*1.47; //converting velocity in ft/sec
+KE=(1/2)*(m*v*v); //calculating Kinetic energy in ft.lb
disp(KE,"Kinetic Energy in ft.lb = "); //displaying result \ No newline at end of file
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