summaryrefslogtreecommitdiff
path: root/3836/CH6/EX6.6/Ex6_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH6/EX6.6/Ex6_6.sce')
-rw-r--r--3836/CH6/EX6.6/Ex6_6.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3836/CH6/EX6.6/Ex6_6.sce b/3836/CH6/EX6.6/Ex6_6.sce
new file mode 100644
index 000000000..3ac7fb9cc
--- /dev/null
+++ b/3836/CH6/EX6.6/Ex6_6.sce
@@ -0,0 +1,11 @@
+clear
+//
+//Initialisation
+P=1400 //Power gain
+
+//Calculation
+pdb=10*log10(P) //Power Gain in dB
+
+//Result
+printf("\n Power Gain (dB) = %.1f dB",pdb)
+