summaryrefslogtreecommitdiff
path: root/3041/CH8/EX8.5/Ex8_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3041/CH8/EX8.5/Ex8_5.sce')
-rwxr-xr-x3041/CH8/EX8.5/Ex8_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3041/CH8/EX8.5/Ex8_5.sce b/3041/CH8/EX8.5/Ex8_5.sce
new file mode 100755
index 000000000..e6e610a56
--- /dev/null
+++ b/3041/CH8/EX8.5/Ex8_5.sce
@@ -0,0 +1,15 @@
+//Variable declaration
+A=.0025 //voltage gain
+Vi=8 //input voltage(V)
+R2=1.5 //resistance 2(k ohms)
+R1=1 //resistance 1(k ohms)
+Vl=5 //load voltage(V)
+
+//Calculations
+beta=R2/(R1+R2) //current gain
+Vo=Vl/(1-beta) //output voltage(V)
+Vo1=(A*Vi)/(1+(A*beta)-beta) //output voltage ripple if Vi=8Vp-p
+
+//Results
+printf ("Vo is %.1f V",Vo)
+printf ("expression of output voltage ripple %.2f Vp-p",Vo1)