summaryrefslogtreecommitdiff
path: root/32/CH1/EX1.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH1/EX1.12
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
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