summaryrefslogtreecommitdiff
path: root/2459/CH1/EX1.4/Ex1_4.sce
blob: ea879a23d710f179176472b29b21a30178ffee01 (plain)
1
2
3
4
5
6
7
8
9
10
11
//chapter1
//example1.4
//page12

I=6 // mA
R=2 // kilo ohm

V=I*R // by ohm law
printf("voltage of voltage source = %.3f V",V)

// this voltage source when connected in series with 2000 ohm gives equivalent voltage source for the given constant current source