blob: 3235836ace7d0f65dfc33d8c5f120741c3a479a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//Initilization of variables
theta=45 //degrees
l=0.5 //m
w=10 //rad/s
//Calculations
//PART a
//Here the theta derivative with respect to time is angular speed w
Vp1=l*(secd(theta)^2)*w //m/s
//Part b
//Radial Component
r=l*secd(theta)*tand(theta)*w //m/s
//Transverse Component
t=l*secd(theta)*w //m/s
//Total
Vp2=sqrt(r^2+t^2) //m/s
//Result
clc
printf('The velocity is:%fm/s\n',Vp1)
printf('The velocity in part b is %fm/s',Vp2)
|