//Example 23.8 L=0.632*10^-3;//Inductance (H) I=30;//Current (A) E_ind=(1/2)*L*I^2;//Energy stored (J) printf('Energy stored in the inductor = %0.3f J',E_ind) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest