summaryrefslogtreecommitdiff
path: root/1655/CH10/EX10.6.1/Example_10_6_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1655/CH10/EX10.6.1/Example_10_6_1.sce')
-rwxr-xr-x1655/CH10/EX10.6.1/Example_10_6_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1655/CH10/EX10.6.1/Example_10_6_1.sce b/1655/CH10/EX10.6.1/Example_10_6_1.sce
new file mode 100755
index 000000000..616774903
--- /dev/null
+++ b/1655/CH10/EX10.6.1/Example_10_6_1.sce
@@ -0,0 +1,16 @@
+// Example 10.6.1 page 10.28
+
+clc;
+clear;
+
+V2=12;
+V1=2.5;
+L2=3;
+L1=0.004;
+
+alpha_dB = 10* log10(V2/V1)/(L2-L1);
+un = 0.2/(L2-L1);
+
+printf("\nAttenuation is %.2f dB/km\nUncertainity +/- %.3f dB.",alpha_dB,un);
+
+//answer for attenuation in the book is 2.26 deviation of 0.01 and for uncertaininty is 0.066 deviation of 0.001