summaryrefslogtreecommitdiff
path: root/3648/CH5/EX5.9/Ex5_9.sce
blob: a6a8cc092e32163d98757e99ba3418e1b264d32e (plain)
1
2
3
4
5
6
7
8
9
10
//Example 5_9
clc();
clear;
//To find out how fast a a ball is going
m=3    //units in Kg
g=9.8   //units in meters/sec^2
hf=0   //units in meters
h0=4   //units in meters
vf=2*sqrt(((m*g*-(hf-h0))*0.5)/m)   //units in meters/sec
printf("The ball is moving with a speed of vf=%.2f meters/sec",vf)