summaryrefslogtreecommitdiff
path: root/3648/CH3/EX3.10/Ex3_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH3/EX3.10/Ex3_10.sce')
-rw-r--r--3648/CH3/EX3.10/Ex3_10.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3648/CH3/EX3.10/Ex3_10.sce b/3648/CH3/EX3.10/Ex3_10.sce
new file mode 100644
index 000000000..2b0565feb
--- /dev/null
+++ b/3648/CH3/EX3.10/Ex3_10.sce
@@ -0,0 +1,13 @@
+//Example 3_10
+clc();
+clear;
+//To find out how high does it goes and its speed and how long will it be in air
+vf=0 //units in meters/sec
+v0=15 //units in meters/sec
+a=-9.8 //units in meters/sec^2
+y=(vf^2-v0^2)/(2*a) //units in meters
+printf("Distance it travels is y=%.1f meters\n",y)
+vf=-sqrt(2*a*-y) //units in meters/sec
+printf("The speed is vf=%d meters/sec\n",vf)
+t=vf/(0.5*a) //units in sec
+printf("Time taken is T=%.2f sec",t)