summaryrefslogtreecommitdiff
path: root/3137/CH12/EX12.12/Ex12_12.sce
blob: f186c3e75dae23fa8e7fadb553014f0701f3100f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Initilization of variables
//Calling upward direction positive
xdot1=6 //ft/s
xdot3=3 //ft/s
xdoubledot=2 //ft/s^2
xdoubledot3=-4 //ft/s^2
//Calculations
xdot=-xdot1 //ft/s
xdot2=2*xdot-xdot3 //ft/s
xdoubledot2=2*xdoubledot-xdoubledot3 //ft/s^2
//Result
clc
printf('The value of velocity is %f ft/s and acceleration is %f ft/s^2',xdot2,xdoubledot2)