blob: d38080915f7516723cdf143cc5d819fbf70eb1f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Initilization of variables
m=7 //kg
g=9.8 //m/s^2
r=0.5 //m
I=0.875 //kg.m^2
//Calculations
//Solving for alpha and T
alpha=(m*g*r)/(I+m*r*0.5) //rad/s^2
T=(I*alpha)/r //N
//Result
clc
printf('The soultion is alpha =%f rad/s^2 and T=%f N',alpha,T)
|