//Example 21.6 v=5*10^2;//Velocity of bullet (m/s) x=8*10^-2;//Distance traversed (m) t=x/v;//Time (s) tau=t;//Time constant (s) R=10;//Resistance (ohm) C=tau/R;//Capacitance (F) printf('Capacitance required = %0.1f microF',C/10^-6) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest