summaryrefslogtreecommitdiff
path: root/710/CH1/EX1.1/1_1.sci
blob: fa935389aa1d9432998ed4b378f7499debcf91aa (plain)
1
2
3
4
5
6
7
8
clc();
clear;
//To calculate intensity of sound

p=50;                   //sound waves with output power in W
r=4;                   //Distance in m
I=p/(4*%pi*r^2)       //Intensity in W/m^2
printf("Intensity of sound at a distance of 4m from the source is %f W/m^2",I);