summaryrefslogtreecommitdiff
path: root/199/CH6/EX6.5/Example_6_5.sce
blob: 004322ea7de6a243ce62b7b00145b480dd872fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Chapter6
// Page.No-203, Figure.No-6.7
// Example_6_5
// Output voltage
// Given
clear;clc;
Va=2;Vb=-3;Vc=4; // Input voltages in volts
R1=1*10^3;Rf=2*10^3;
V1=(Va+Vb+Vc)/3; // Voltage at non-inverting terminal
printf("\n Voltage at non-inverting terminal is = %.f V \n",V1)
Vo=(1+Rf/R1)*V1; // Output voltage
printf("\n Output voltage is = %.f V \n",Vo)