summaryrefslogtreecommitdiff
path: root/1985/CH7/EX7.2/Chapter7_Example2.sce
blob: 26b8a54f6cb84bd45aeccb2e706d79b6202d70d1 (plain)
1
2
3
4
5
6
7
8
9
10
clc
clear
//Input data
I=(10^-4)//Intensity of sound in the street in W/m^2

//Calculations
b=10*log10(I/10^-12)//Relative intensity in dB

//Output
printf('The relative sound intensity is %3.0f dB',b)