summaryrefslogtreecommitdiff
path: root/1109/CH7/EX7.4/7_4.sce
blob: 2aba5367530e0e96035c8542b90cc63f3ae5bff6 (plain)
1
2
3
4
5
6
7
8
9
10
clear;
clc;
a=1;c=3*(10^8);f=(10^9);d=25;
lc=2*a;
lo=c/f;
l=lo/(10^2);
att=(54.55/lc)*d;
printf("Total attenuation = %f db",round(att*100)/100);
//the difference in result  is due to erroneous value in textbook.
disp("The difference in result is due to erroneous value in textbook")