diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3845/CH3/EX3.4/Ex3_4.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3845/CH3/EX3.4/Ex3_4.sce')
-rw-r--r-- | 3845/CH3/EX3.4/Ex3_4.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3845/CH3/EX3.4/Ex3_4.sce b/3845/CH3/EX3.4/Ex3_4.sce new file mode 100644 index 000000000..ff8e119c2 --- /dev/null +++ b/3845/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,18 @@ +//Example 3.4
+y_0=0;//Initial position (m)
+v_y=0;//Final velocity (m/s)
+v_0=70;//Initial velocity (m/s)
+theta_0=75;//Initial angle (deg)
+v_0y=v_0*sind(theta_0);//y-component of initial velocity (m/s)
+g=9.8;//Acceleration due to gravity (m/s^2)
+y=(v_0y^2-v_y^2)/(2*g)+y_0;//Rearranging Equation 3.45 for maximum height (m)
+printf('a.Maximum height = %0.1f m',y)
+t=(y-y_0)/(1/2*(v_0y+v_y));//Rearranging Equation 3.37 for time (s)
+printf('\nb.Time between launch and explosion of shell = %0.2f s',t)
+x_0=0;//Initial horizontal distance (m)
+v_x=v_0*cosd(theta_0);//x-component of initial velocity (m/s)
+x=x_0+v_x*t;//Rearranging Equation 3.34 for horizontal displacement (m)
+printf('\nc.Horizontal displacement of the shell when it explodes = %0.1f m',x)
+//Answer varies due to round off error
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest
|