summaryrefslogtreecommitdiff
path: root/3792/CH2/EX2.9/Ex2_9.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.9/Ex2_9.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.9/Ex2_9.sce')
-rw-r--r--3792/CH2/EX2.9/Ex2_9.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3792/CH2/EX2.9/Ex2_9.sce b/3792/CH2/EX2.9/Ex2_9.sce
new file mode 100644
index 000000000..3c2bc9da8
--- /dev/null
+++ b/3792/CH2/EX2.9/Ex2_9.sce
@@ -0,0 +1,21 @@
+// Example 2_9
+clc;funcprot(0);
+// Given data
+// theta=0.2t+0.02t^3;
+// r=0.2+0.04t^2;
+t=3;// s
+
+// Calculation
+r_3=0.2+(0.04*t^2);// m
+rdot_3=0.08*t;// m/s
+rdotdot_3=0.08;// m/s^2
+theta_3=(0.2*t)+(0.02*t^3);// rad
+thetadot_3=0.2+(0.06*t^2);// rad/s
+thetadotdot_3=0.12*t;// rad/s^2
+v_r=rdot_3;// m/s
+v_theta=r_3*thetadot_3;// m/s
+v=sqrt(v_r^2+v_theta^2);// m/s
+a_r=rdotdot_3-(r_3*thetadot_3^2);// m/s^2
+a_theta=((r_3*thetadotdot_3)+(2*rdot_3*thetadot_3));// m/s^2
+a=sqrt(a_r^2+a_theta^2);// m/s^2
+printf("\nThe magnitudes of the velocity and acceleration of the slider, v=%0.3f m/s and a=%0.3f m/s^2",v,a);