blob: 66049b267faa7de1d62ba756823695c5d341285e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Initilization of variables
wb=40 //rpm
we=60 //rpm
t1=5 //s using different symbol to avoid conflict in decleration
t=2 //s
r=2 //ft
//Calculations
alpha=(((we*2*%pi)/60)-((wb*2*%pi)/60))/t1 //rad/s^2
w=((wb*2*%pi)/60)+alpha*t //rad/s
//Components of acceleration are
a_t=r*alpha //ft/s^2
a_n=r*w^2 //ft/s
//result
clc
printf('The tangential and normal acceleration\n are %f rad/s^2 and %frad/s^2 respectively',a_t,a_n)
|