From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 2702/CH1/EX1.25/Ex_1_25.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 2702/CH1/EX1.25/Ex_1_25.sce (limited to '2702/CH1/EX1.25/Ex_1_25.sce') diff --git a/2702/CH1/EX1.25/Ex_1_25.sce b/2702/CH1/EX1.25/Ex_1_25.sce new file mode 100644 index 000000000..a8cb78f39 --- /dev/null +++ b/2702/CH1/EX1.25/Ex_1_25.sce @@ -0,0 +1,26 @@ +// Exa 1.25 +clc; +clear; +close; +// Given data +R1= 9;// in kΩ +R2= 1;// in kΩ +R3= 2;// in kΩ +R4= 3;// in kΩ +// The output voltage, vo1= (1+R1/R2)*va +vo1BYva= (1+R1/R2);// (i) +// Voltage at node va= R4*v1/(R3+R4) +vaBYv1= R4/(R3+R4);// (ii) +// From (i) and (ii) +vo1BYv1= vo1BYva*vaBYv1;// (iii) +// The output voltage, vo2= (1+R1/R2)*va +vo2BYva= (1+R1/R2);// (iv) +// Voltage at node va= R3*v2/(R3+R4) +vaBYv2= R3/(R3+R4);// (v) +// From (i) and (ii) +vo2BYv2= vo2BYva*vaBYv2;// (iii) +// The output voltage, vo3= (-R1/R2)*v3 +vo3BYv3= (-R1/R2);// (i) + +// Total output vo= vo1 + vo2 + vo3 +disp("Total voltage is "+string(vo1BYv1)+" v1 + "+string(vo2BYv2)+" v2 "+string(vo3BYv3)+" v3") -- cgit