//Example 6.2 v=25;//Speed (m/s) r=500;//Radius (m) a_c=v^2/r;//Centripetal acceleration (m/s^2) printf('Centripetal acceleration = %0.2f m/s^2',a_c) //Discussion: g=9.80;//Acceleration due to gravity (m/s^2) printf('\nDiscussion:\nComparing with acceleration due to gravity, centripetal acceleration a_c = %0.3f g',a_c/g) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest