summaryrefslogtreecommitdiff
path: root/746/CH1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /746/CH1
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 '746/CH1')
-rwxr-xr-x746/CH1/EX1.01/1_01.sce7
-rwxr-xr-x746/CH1/EX1.02/1_02.sce13
2 files changed, 20 insertions, 0 deletions
diff --git a/746/CH1/EX1.01/1_01.sce b/746/CH1/EX1.01/1_01.sce
new file mode 100755
index 000000000..576606142
--- /dev/null
+++ b/746/CH1/EX1.01/1_01.sce
@@ -0,0 +1,7 @@
+//Heat addition//
+filename=pathname+filesep()+'1.01-data.sci'
+exec(filename)
+//Heat added during the process(in kJ):
+Q12=m*cp*(T2-T1)
+printf("\n\nRESULTS\n\n")
+printf("\n\nHeat added during the process: %f kJ\n\n",Q12/1000)
diff --git a/746/CH1/EX1.02/1_02.sce b/746/CH1/EX1.02/1_02.sce
new file mode 100755
index 000000000..5a88f0378
--- /dev/null
+++ b/746/CH1/EX1.02/1_02.sce
@@ -0,0 +1,13 @@
+//speed and actual speed//
+pathname=get_absolute_file_path('1.02.sce')
+filename=pathname+filesep()+'1.02-data.sci'
+exec(filename)
+//Speed at which the ball hits the ground(in m/sec):
+V=sqrt(m*g/k*(1-%e^(2*k/m*(-y0))))
+//Terminal speed(in m/sec):
+Vt=sqrt(m*g/k)
+//Ratio of actual speed to the terminal speed:
+r=V/Vt;
+printf("\n\nRESULTS\n\n")
+printf("\n\nSpeed at which the ball hits he ground: %f m/sec\n\n",V)
+printf("\n\nRatio of actual speed to the terminal speed: %f\n\n",r)