blob: 2133707c755d4fed27f3a9b04a681d47b94ecf30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Initilization of variables
m=8 //kg
n=90 //rpm
g=9.8 //m/s^2
//Calculations
Fg=m*g //N
w=2*%pi*n/60 //rad/s
//using equations of motion
By=m*g //N
//Solving for Bx and C
A=[1,1;-0.3,0.9]
B=[m*0.3*w^2;By*0.3]
C=inv(A)*B //N
//Result
clc
printf('The solution is Bx=%f N ,By=%f N and C=%f N',C(1),By,C(2))
|