diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /24/CH2/EX2.1.d/Example2_1d.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '24/CH2/EX2.1.d/Example2_1d.sce')
-rwxr-xr-x | 24/CH2/EX2.1.d/Example2_1d.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/24/CH2/EX2.1.d/Example2_1d.sce b/24/CH2/EX2.1.d/Example2_1d.sce new file mode 100755 index 000000000..49520d56b --- /dev/null +++ b/24/CH2/EX2.1.d/Example2_1d.sce @@ -0,0 +1,12 @@ +//Given that
+exec('Example2_1a.sce', -1)
+exec('Example2_1a.sce', -1)
+clc
+
+//Sample Problem 2-1d
+printf("\n**Sample Probelm 2-1d**\n")
+time_station = 45 //in min
+//he trevels 2 km back to the truck
+final_displacement = overall_displacement + 2 //in km
+final_average_velocity = final_displacement /(delta_t + time_station /60)
+printf("Average velocity from the begining of the drive till reaching back to the truck is %f km/h", final_average_velocity)
\ No newline at end of file |