summaryrefslogtreecommitdiff
path: root/863/CH15/EX15.4
diff options
context:
space:
mode:
Diffstat (limited to '863/CH15/EX15.4')
-rw-r--r--863/CH15/EX15.4/Ex15_4.sce18
-rw-r--r--863/CH15/EX15.4/Ex15_4.txt18
-rw-r--r--863/CH15/EX15.4/Result15_4.txt4
3 files changed, 40 insertions, 0 deletions
diff --git a/863/CH15/EX15.4/Ex15_4.sce b/863/CH15/EX15.4/Ex15_4.sce
new file mode 100644
index 000000000..73954288b
--- /dev/null
+++ b/863/CH15/EX15.4/Ex15_4.sce
@@ -0,0 +1,18 @@
+//caption:Calculate the output voltage
+//Ex15.4
+clc;
+clear;
+close;
+Vie=1//Input voltage for resistor Re(in volts)
+Vid=0//Input voltage for resistor Rd(in volts)
+Vic=1//Input voltage for resistor Rc(in volts)
+Vib=1//Input voltag for resistor Rb(in volts)
+Via=0//Input voltage for resistor Ra(in volts)
+R=16//Input Resistor(in kilo ohm)
+re=1//Resistor(in kilo ohm)
+rd=2//Resistor(in kilo ohm)
+rc=4//Resistor(in kilo ohm)
+rb=8//Resistor(in kilo ohm)
+ra=16//Resistor(in kilo ohm)
+Vo=R*((Vie/re)+(Vid/rd)+(Vic/rc)+(Vib/rb)+(Via/ra))
+disp(Vo,'Output voltage(in volts)=') \ No newline at end of file
diff --git a/863/CH15/EX15.4/Ex15_4.txt b/863/CH15/EX15.4/Ex15_4.txt
new file mode 100644
index 000000000..73954288b
--- /dev/null
+++ b/863/CH15/EX15.4/Ex15_4.txt
@@ -0,0 +1,18 @@
+//caption:Calculate the output voltage
+//Ex15.4
+clc;
+clear;
+close;
+Vie=1//Input voltage for resistor Re(in volts)
+Vid=0//Input voltage for resistor Rd(in volts)
+Vic=1//Input voltage for resistor Rc(in volts)
+Vib=1//Input voltag for resistor Rb(in volts)
+Via=0//Input voltage for resistor Ra(in volts)
+R=16//Input Resistor(in kilo ohm)
+re=1//Resistor(in kilo ohm)
+rd=2//Resistor(in kilo ohm)
+rc=4//Resistor(in kilo ohm)
+rb=8//Resistor(in kilo ohm)
+ra=16//Resistor(in kilo ohm)
+Vo=R*((Vie/re)+(Vid/rd)+(Vic/rc)+(Vib/rb)+(Via/ra))
+disp(Vo,'Output voltage(in volts)=') \ No newline at end of file
diff --git a/863/CH15/EX15.4/Result15_4.txt b/863/CH15/EX15.4/Result15_4.txt
new file mode 100644
index 000000000..d7238c197
--- /dev/null
+++ b/863/CH15/EX15.4/Result15_4.txt
@@ -0,0 +1,4 @@
+ Output voltage(in volts)=
+
+ 22.
+ \ No newline at end of file