From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1619/CH2/EX2.2.7/Example2_2_7.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1619/CH2/EX2.2.7/Example2_2_7.sce (limited to '1619/CH2/EX2.2.7/Example2_2_7.sce') diff --git a/1619/CH2/EX2.2.7/Example2_2_7.sce b/1619/CH2/EX2.2.7/Example2_2_7.sce new file mode 100755 index 000000000..49e544910 --- /dev/null +++ b/1619/CH2/EX2.2.7/Example2_2_7.sce @@ -0,0 +1,16 @@ +//Example 2.2.7 page 2.9 + +clc; +clear; +z= 10; +p0= 100*10^-6; // input power +pz=5*10^-6; //output power +alpha = 10*log10(p0/pz); //total attenuation +printf("The overall signal attenuation is %.2f dB",alpha); +alpha = alpha/z; // attenuation per km +printf("\n\nThe attenuation per Km is %.2f dB/Km",alpha); +z_new = 12; +splice_attenuation = 11*0.5; +cable_attenuation = alpha*z_new; +total_attenuation = splice_attenuation+cable_attenuation; +printf("\n\nThe overall signal attenuation for 12Kms is %.1f dB",total_attenuation); -- cgit