//Example 17.3 ratio=2;//Ratio of the two sound wave intensities, I2/I1 delta_beta=10*log10(ratio);//Difference in sound intensity levels, beta2-beta1, (dB) printf('Difference in sound level = %0.2fdB (when one sound wave is twice as intense as the other)',delta_beta) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest