summaryrefslogtreecommitdiff
path: root/3809/CH8/EX8.2/EX8_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH8/EX8.2/EX8_2.sce')
-rw-r--r--3809/CH8/EX8.2/EX8_2.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3809/CH8/EX8.2/EX8_2.sce b/3809/CH8/EX8.2/EX8_2.sce
new file mode 100644
index 000000000..605ff6e2b
--- /dev/null
+++ b/3809/CH8/EX8.2/EX8_2.sce
@@ -0,0 +1,9 @@
+//Chapter 8, Example 8.2
+clc
+//Initialisation
+p=2500 //power gain
+
+//Calculation
+pdb=10*log10(p) //power gain
+//Result
+printf("Power Gain (dB) = %.1f dB\n",pdb)