summaryrefslogtreecommitdiff
path: root/273/CH24/EX24.7/ex24_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '273/CH24/EX24.7/ex24_7.sce')
-rwxr-xr-x273/CH24/EX24.7/ex24_7.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/273/CH24/EX24.7/ex24_7.sce b/273/CH24/EX24.7/ex24_7.sce
new file mode 100755
index 000000000..6d053a39b
--- /dev/null
+++ b/273/CH24/EX24.7/ex24_7.sce
@@ -0,0 +1,12 @@
+clc;clear;
+//Example 24.7
+//calculation of power loss
+
+//given values
+Pi=1*10^-3;//initial power level in W
+l=.5;//length of cable in km
+Po=.85*Pi
+
+//calculation
+a=(10/l)*log10(Pi/Po);
+disp(a,'loss in dB/km is');