summaryrefslogtreecommitdiff
path: root/196/CH3/EX3.12/example_3_12.sce
blob: 539b54f24eba82c42ded7a6c12902d3ce47ddaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 3
//Example 3-12
//ProbOnOutputvoltage 
//Page 57
clear;clc;
//Given
R1=100000;R2=100000;R3=100000;R=100000//in ohm
Rf=33*10^3;//in ohm
E1=5;E2=5;E3=-1;//in volts
n=3;//number of inputs
Vout=-(E1+E2+E3)/n;//output voltage
printf("\n\n Value of output voltage =  %.4f V \n\n",Vout)