summaryrefslogtreecommitdiff
path: root/3792/CH2/EX2.2/Ex2_2.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.2/Ex2_2.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.2/Ex2_2.sce')
-rw-r--r--3792/CH2/EX2.2/Ex2_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3792/CH2/EX2.2/Ex2_2.sce b/3792/CH2/EX2.2/Ex2_2.sce
new file mode 100644
index 000000000..70aee775b
--- /dev/null
+++ b/3792/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,19 @@
+// Example 2_2
+clc;funcprot(0);
+// Given data
+v_x=50;// The initial velocity in ft/sec
+a_x=-10;// The acceleration in ft/sec^2
+t_0=8;// s
+t_1=12;// s
+
+// Calculation
+// v_x=90-10t; ft/sec
+v_x0=(90-(10*t_0));// The velocity in ft/sec
+v_x1=(90-(10*t_1));// The velocity in ft/sec
+// x=-5t^2+90t-80; ft
+x_0=(-5*t_0^2)+(90*t_0)-80;// ft
+x_1=(-5*t_1^2)+(90*t_1)-80;// ft
+// The maximum positive x-coordinate is,then, the value of x for t=9 sec which is
+t=9;// sec
+x_max=(-5*t^2)+(90*t)-80;// ft
+printf("\nThe velocity of the particle for the conditions of t=8 sec and t=12 sec,v_x=%2.0f ft/sec & v_x=%2.0f ft/sec \nThe x-coordinate of the particle for the conditions of t=8 sec and t=12 sec, x=%3.0f ft & x=%3.0f ft \nThe maximum positive x-coordinate reached by the particle,x_max=%3.0f ft",v_x0,v_x1,x_0,x_1,x_max)