blob: 7fa7f592657bd3abcd2c41ea5eb75181fb7ad95b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Example 4_11
clc();
clear;
//To find the acceleration of the system
w1=7 //units in Kg
a=9.8 //units in meters/sec^2
w2=5 //units in Kg
w=w1/w2
F1=29.4 //units in Newtons
F2=20 //units in Newtons
f=(F1+F2) //units in Newtons
T1=w1*a //units in Newtons
T=(T1+(w*f))/(1+w) //units in Newtons
a=((w1*a)-T)/w1 //units in meters/sec^2
printf("Acceleration a=%.2f meters/sec^2",a)
|