summaryrefslogtreecommitdiff
path: root/3137/CH16/EX16.60/Ex16_60.sce
blob: e263f5e9021ba97773933f4bc299af2bedcbcb5a (plain)
1
2
3
4
5
6
7
8
9
10
11
//Initilization of variables
g=9.8 //m/s^2
r1=0.3 //m
m1=20 //kg
m2=100 //kg
r2=0.75 //m
//Calculations
alpha=(m1*g*r1+m2*g*r2)/(m1*r1^2+(m1/12)*0.6^2+m2*r2^2+(2/5)*m2*0.15^2) //rad/s^2
//Result
clc
printf('The angular acceleration is %f rad/s^2',alpha)