summaryrefslogtreecommitdiff
path: root/3809/CH19/EX19.2/EX19_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH19/EX19.2/EX19_2.sce')
-rw-r--r--3809/CH19/EX19.2/EX19_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3809/CH19/EX19.2/EX19_2.sce b/3809/CH19/EX19.2/EX19_2.sce
new file mode 100644
index 000000000..1591db671
--- /dev/null
+++ b/3809/CH19/EX19.2/EX19_2.sce
@@ -0,0 +1,18 @@
+//Chapter 19, Example 19.2
+
+clc
+//Initialisation
+rl=5 //resistance in ohm
+vo=10 //Output Voltage
+vi=15 //input voltage
+
+//Calculation
+io=vo/rl //current in ampere
+po=vo*io //power delivered to load
+pt=(vi-vo)*io //power delivered to output transistor
+
+
+//Results
+printf("Output Power on Load Po = %d W\n",round(po))
+printf("Output Power on O/P Transistor Pt = %d W",round(pt))
+