blob: 2f8d4ec4112a86f912e5932f6b90ddf12c325793 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Initilization of variables
Vo=1.5 //m/s
V=0 //m/s
g=9.8 //m/s^2
//Calculations
a=(g*0.2)/0.75 //m/s^2
t=-(V-Vo)/a //s
//Result
clc
printf('The maximum accelerayion is %f m/s^2 and minimum time is %f s',a,t)
|