summaryrefslogtreecommitdiff
path: root/3648/CH4/EX4.4/Ex4_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3648/CH4/EX4.4/Ex4_4.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3648/CH4/EX4.4/Ex4_4.sce')
-rw-r--r--3648/CH4/EX4.4/Ex4_4.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3648/CH4/EX4.4/Ex4_4.sce b/3648/CH4/EX4.4/Ex4_4.sce
new file mode 100644
index 000000000..0189194a6
--- /dev/null
+++ b/3648/CH4/EX4.4/Ex4_4.sce
@@ -0,0 +1,19 @@
+//Example 4_4
+clc();
+clear;
+// To calculate How far does the car goes
+w1=3300 //units in lb
+F1=4.45 //units in Newtons
+w2=1 //units in lb
+weight=w1*(F1/w2) //units in Newtons
+g=9.8 //units in meters/sec^2
+Mass=weight/g //units in Kg
+speed=38 //units in mi/h
+speed=speed*(1.61)*(1/3600) //units in Km/sec
+stoppingforce=0.7*(weight) //units in Newtons
+a=stoppingforce/-(Mass) //units in meters/sec^2
+vf=0
+v0=17 //units in meters/sec
+x=(vf^2-v0^2)/(2*a)
+printf("The car goes by x=%.1f meters",x)
+//In text book the answer is printed wrong as x=20.9 meters the correct answer is x=21.1 meters