summaryrefslogtreecommitdiff
path: root/3648/CH8/EX8.5/Ex8_5.sce
blob: 25c3807cc327385757fd08e10e122402c07e2c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 8_5
clc();
clear;
//To find the speed of the object
m=3  //units in Kg
g=9.8   //units in meters/sec^2
h=0.80    //units in meters
m1=3   //units in Kg
m2=14.4   //units in Kg
r=0.75   //units in meters
v=sqrt((m*g*h)/((0.5*m1)+((0.5*m2)/r^2)))
printf("The object is moving at v=%.2f meters/sec",v)