summaryrefslogtreecommitdiff
path: root/3754/CH9/EX9.7/9_7.sce
blob: 233ff7648cb000f200184da7d00e2f922ac03b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

IS = 5.0                    //Source current (in milli-Ampere)
RS = 2.0                    //Source resistance (in kilo-ohm)

//Calculation

VS = IS * RS                //Voltage source (in volts)

//Result

printf("\n Equivalent voltage source is  %0.3f  V.",VS)