summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.39/2_39.sce
blob: dfcf4a112f8994fa60ee931b31ca1fd59e9c3cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function p=parallel(r1,r2)
    p=r1*r2/(r1+r2)
endfunction

R1=parallel(1,3)

//convert current source to voltage
V=20/1000*2000
I=(40-8)/(2+0.75)

Pr=8*I
disp(Pr)