blob: 55b79f5cb923dfbaea098b1f3de5ac31b2206bb0 (
plain)
1
2
3
4
5
6
|
//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
|