summaryrefslogtreecommitdiff
path: root/32/CH1/EX1.12
diff options
context:
space:
mode:
Diffstat (limited to '32/CH1/EX1.12')
-rwxr-xr-x32/CH1/EX1.12/1_12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/32/CH1/EX1.12/1_12.sce b/32/CH1/EX1.12/1_12.sce
new file mode 100755
index 000000000..97e4106ec
--- /dev/null
+++ b/32/CH1/EX1.12/1_12.sce
@@ -0,0 +1,15 @@
+//pathname=get_absolute_file_path('1.12.sce')
+//filename=pathname+filesep()+'1.12-data.sci'
+//exec(filename)
+//Velocity of the object(in m/s):
+v=750
+//Gravitational force acting on the body(in N):
+F=4000
+//Acceleration due to gravity(in m/s^2):
+g=8
+//Mass of the object(in kg):
+m=F/g
+//Kinetic energy of the body(in J):
+KE=1/2*m*v^2
+printf("\n\n RESULT \n\n")
+printf("\n\n Kinetic energy = %f J \n\n",KE) \ No newline at end of file