summaryrefslogtreecommitdiff
path: root/3809/CH13/EX13.3/EX13_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH13/EX13.3/EX13_3.sce')
-rw-r--r--3809/CH13/EX13.3/EX13_3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3809/CH13/EX13.3/EX13_3.sce b/3809/CH13/EX13.3/EX13_3.sce
new file mode 100644
index 000000000..61ad3b770
--- /dev/null
+++ b/3809/CH13/EX13.3/EX13_3.sce
@@ -0,0 +1,17 @@
+//Chapter 13, Example 13.3
+
+clc
+//Initialisation'
+rl=50 //resistance in ohm
+ro=0 //resistance in ohm
+vs=2 //voltage
+ao=10 //output gain
+
+//Calculation
+vi=vs //input voltage
+vo=ao*vi*(rl/(ro+rl)) //output voltage
+
+
+//Results
+printf("Output Voltage = %.2f V",vo)
+