summaryrefslogtreecommitdiff
path: root/3845/CH3/EX3.6/Ex3_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH3/EX3.6/Ex3_6.sce')
-rw-r--r--3845/CH3/EX3.6/Ex3_6.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3845/CH3/EX3.6/Ex3_6.sce b/3845/CH3/EX3.6/Ex3_6.sce
new file mode 100644
index 000000000..e908b8228
--- /dev/null
+++ b/3845/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,11 @@
+//Example 3.6
+v_river=1.2;//Velocity of river current (m/s)
+v_x=v_river;//x-component of velocity (m/s)
+v_boat=0.75;//Velocity of boat (m/s)
+v_y=v_boat;//y-component of velocity (m/s)
+v_tot=sqrt(v_x^2+v_y^2);//Magnitude of resultant velocity (m/s)
+printf('Magnitude of the boat''s velocity relative to the observer on the shore = %0.2f m/s',v_tot)
+theta=atand(v_y/v_x);//Direction of resultant velocity (deg)
+printf('\nDirection of the boat''s velocity relative to the observer on the shore = %0.1f deg',theta)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest