summaryrefslogtreecommitdiff
path: root/3648/CH4/EX4.5/Ex4_5.sce
blob: a04b44dbf2c052b74e84455f597d30b2f893327f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 4_5
clc();
clear;
//To find the acceleration of the masses
w1=10   //units in Kg
w2=5   //units in Kg
f1=98   //units in Newtons
f2=49   //units in Newtons
w=w1/w2
T=round((f1+(w*f2))/(w+1))   //units in Newtons
a=(f1-T)/w1   //units in meters/sec^2
printf("Acceleration is a=%.1f meters/sec^2",a)