summaryrefslogtreecommitdiff
path: root/213/CH2/EX2.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /213/CH2/EX2.3
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 '213/CH2/EX2.3')
-rwxr-xr-x213/CH2/EX2.3/2_3.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/213/CH2/EX2.3/2_3.sce b/213/CH2/EX2.3/2_3.sce
new file mode 100755
index 000000000..bcda83c83
--- /dev/null
+++ b/213/CH2/EX2.3/2_3.sce
@@ -0,0 +1,22 @@
+//To Find the Velocity
+clc
+//Given:
+//Initial parameters
+v0=100 //kmph
+t0=0
+//Parameters at the end of 40 seconds
+v1=90/100*v0 //kmph
+t1=40 //seconds
+//Solution:
+//The acceleration is given by, a=(-dv/dt)=k*v
+//Integrating, we get ln(v)=-k*t+C
+//Calculating the constant of integration
+C=integrate('1/v','v',1,100)
+//Calculating the constant of proportionality
+k=(C-2.3*log10(90))/40
+//Time after 120 seconds
+t2=120 //seconds
+//Calculating the velocity after 120 seconds
+v120=10^((-k*t2+C)/2.29)
+//Results:
+printf("\n\n The velocity at the end of 120 seconds, v120 = %.1f kmph.\n\n",v120) \ No newline at end of file