summaryrefslogtreecommitdiff
path: root/608/CH10/EX10.15/10_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH10/EX10.15/10_15.sce')
-rwxr-xr-x608/CH10/EX10.15/10_15.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/608/CH10/EX10.15/10_15.sce b/608/CH10/EX10.15/10_15.sce
new file mode 100755
index 000000000..d075a6242
--- /dev/null
+++ b/608/CH10/EX10.15/10_15.sce
@@ -0,0 +1,12 @@
+//Problem 10.15: An amplifier has a gain of 14 dB. Its input power is 8 mW. Find its output power.
+
+//initializing the variables:
+X = 14; // decibal power ratio in dB
+P1 = 0.008; // in Watt
+
+//calculation:
+rP = 10^(X/10)
+P2 = rP*P1
+
+printf("\n\n Result \n\n")
+printf("\n output power P2 = %.3f W\n",P2) \ No newline at end of file