summaryrefslogtreecommitdiff
path: root/196/CH3/EX3.9/example_3_9.sce
blob: 8489277f88f45b5036cd51600ba9564a443b60a7 (plain)
1
2
3
4
5
6
7
8
9
10
//Chapter 3
//Example 3-9
//ProbOnO/Pvoltage 
//Page 53,Figure 3-4
clear;clc;
//Given
E1=2;E2=3;E3=-1;//input voltage
R=10*10^3;//in ohm
Vout=-(E1+E2+E3);
printf("\n\n Value of o/p voltage =  %.4f V \n\n",Vout)