blob: c63ac039abeda8a859b37a4d6c37f17bc4903cfc (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 2.1
v_0=0;//Initial velocity (m/s)
v_f=-15;//Final velocity (due west) (m/s)
delta_v=v_f-v_0;//Change in velocity (m/s)
delta_t=1.80;//Time period (s)
a=delta_v/delta_t;//Acceleration (m/s^2)
printf('Acceleration = %0.2f m/s^2',a)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|