summaryrefslogtreecommitdiff
path: root/2681/CH8/EX8.15/Ex8_15.sce
blob: 8abab29dface8ae868303b30f38a8c6b2192aaad (plain)
1
2
3
4
5
6
7
8
9
10
11
//power gain of paraboloid reflector
//given
clc
lemda=1//as value of lemda do not effect the expression
for(lemda!=0)
Da=6*lemda
gp=6.4*(Da/lemda)^2
gp_decibles=10*log10(gp)//changing to decibles
end
gp_decibles=round(gp_decibles*100)/100///rounding off decimals
disp(gp_decibles,'the power gain of paraboloid reflector in decibles')//decibles