summaryrefslogtreecommitdiff
path: root/3648/CH4/EX4.6/Ex4_6.sce
blob: 132590062a6884df85e22cb8e21a276ca8a3dffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 4_6
clc();
clear;
//To find the acceleration of the objects
w1=0.4   //units in Kg
w2=0.2    //units in Kg
w=w1/w2
a=9.8   //units in meters/sec^2
f=0.098   //units in Newtons
c=w2*a   //units in Newtons
T=((w*c)+f)/(1+w)     //units in Newtons
a=(T-f)/w1   //units in meters/sec^2
printf("Acceleration a=%.1f meters/sec^2",a)