summaryrefslogtreecommitdiff
path: root/3809/CH13/EX13.5/EX13_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH13/EX13.5/EX13_5.sce')
-rw-r--r--3809/CH13/EX13.5/EX13_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3809/CH13/EX13.5/EX13_5.sce b/3809/CH13/EX13.5/EX13_5.sce
new file mode 100644
index 000000000..b2c5e87e2
--- /dev/null
+++ b/3809/CH13/EX13.5/EX13_5.sce
@@ -0,0 +1,20 @@
+//Chapter 13, Example 13.5
+
+clc
+//Initialisation
+ri=1000 //resistance in ohm
+rl=50 //resistance in ohm
+vi=1.82 //input voltage
+vo=15.2 //output voltage
+
+
+
+//Calculation
+
+po=vo**2/rl //output power in watt
+pi=vi**2/ri //input power in watt
+ap1=po/pi //power gain
+
+//Results
+printf("Power Gain, Ap = %d",ap1)
+