//Example 10.6 omega=6.0;//Angular velocity (rpm) t=2;//Time (min) r=0.15;//Radius of plate (m) theta=omega*t;//Revolutions (rev) theta=theta*2*%pi;//Angle taken through (rad) x=r*theta;//Distance travelled (m) printf('Distance travelled by the fly = %0.2f m',x) //Answer varies due to round off error //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest