summaryrefslogtreecommitdiff
path: root/2498/CH2/EX2.26/ex2_26.sce
diff options
context:
space:
mode:
Diffstat (limited to '2498/CH2/EX2.26/ex2_26.sce')
-rwxr-xr-x2498/CH2/EX2.26/ex2_26.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2498/CH2/EX2.26/ex2_26.sce b/2498/CH2/EX2.26/ex2_26.sce
new file mode 100755
index 000000000..3f3115bbd
--- /dev/null
+++ b/2498/CH2/EX2.26/ex2_26.sce
@@ -0,0 +1,14 @@
+// Exa 2.26
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R_L = 2;// in k ohm
+R_L = R_L * 10^3;// in ohm
+R = 2;// in k ohm
+R = R * 10^3;// in ohm
+Vin = 5;// in V
+// The peak output voltage
+Vout = (R_L/(R+R_L))*Vin;// in V
+disp(Vout,"The peak output voltage in V is");