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