summaryrefslogtreecommitdiff
path: root/3792/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3792/CH2/EX2.1/Ex2_1.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 '3792/CH2/EX2.1/Ex2_1.sce')
-rw-r--r--3792/CH2/EX2.1/Ex2_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3792/CH2/EX2.1/Ex2_1.sce b/3792/CH2/EX2.1/Ex2_1.sce
new file mode 100644
index 000000000..d95f5300f
--- /dev/null
+++ b/3792/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,21 @@
+// Example 2_1
+clc;funcprot(0);
+// Given data
+// s=2t^3-24t+6;
+v_a=72;// Velocity in m/s
+v_b=30;// Velocity in m/s
+t_0=1;// s
+t_1=4;// s
+
+// Calculation
+// v=6t^2-24;
+// a=12t;
+// (a)
+t=sqrt((v_a+24)/6);// Time in s
+// (b)
+a=sqrt((v_b+24)/6);// Time in s
+// (c)
+s4=((2*t_1^3)-(24*t)+6);// m
+s1=((2*t_0^3)-(24*t_0)+6)// m;
+deltaS=s4-s1;// The net displacement during the specified interval in m
+printf("\n(a)The time required for the particle to reach a velocity of 72 m/s from its initial condition at t=0 is %1.0f s.\n(b)The acceleration of the particle a=%2.0f m/s^2 \n(c)The net displacement,deltaS=%2.0f m",t,a,deltaS);