diff options
Diffstat (limited to '3682/CH2/EX2.4/Ex2_4.sce')
-rw-r--r-- | 3682/CH2/EX2.4/Ex2_4.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3682/CH2/EX2.4/Ex2_4.sce b/3682/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..8551a9d97 --- /dev/null +++ b/3682/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,26 @@ +// Exa 2.4
+
+clc;
+clear;
+
+// Given data
+
+// Referring circuit given in Fig. 2.7(a)
+R1= 5*10^3; // Ω
+Rf=20*10^3; // Ω
+Vi=1; // Input voltage(V)
+RL=5*10^3; // Load resistor(Ω)
+
+
+// Solution
+
+Vo= (1+(Rf/R1))*Vi; // Output voltage(V)
+printf('The output voltage i.e vo = %d V. \n',Vo);
+AcL=Vo/Vi; // Closed loop Gain
+printf(' The closed loop gain i.e Acl = %d. \n',AcL);
+IL=Vo/RL; // Output current(A)
+printf(' The load current i.e iL = %d mA. \n',IL*1000);
+I1=Vi/R1; // Input current(A)
+Io=IL+I1; // Total current(A)
+printf(' The output current i.e io = %.2f mA. \n',Io*1000);
+disp("The op-amp output current Io flows outwards from the output junction.");
|