summaryrefslogtreecommitdiff
path: root/2243/CH16/EX16.4/Ex16_4.sce
blob: bf4ba1d41be64b13dbf671687d314466d124de4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc();
clear;
//Given :
I0 = 10^-12; // in W/m^2
beta1 = 0; // in dB
beta2 = 60;// in dB
beta3 = 120; // in dB
// Intensity level = beta = 10*log10(I/I0)
I1 = 10^(beta1/10)*I0; // Intensity in W/m^2
I2 = 10^(beta2/10)*I0; // Intensity in W/m^2
I3 = 10^(beta3/10)*I0; // Intensity in W/m^2
printf("Hearing Threshold : %.1f x 10^-12 W/m^2 \n",I1*10^12);
printf("Speech Activity : %.1f x 10^-6 W/m^2 \n",I2*10^6);
printf("Pain Threshold : %.1f W/m^2",I3);