blob: 07b9e410afe07a5b54d6981aef6e988f234f322c (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Chapter 3
//Example 3-8
//ProbOnO/Pvoltage
//Page 52,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)
|