summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.36/2_36.sce
blob: fdc42854866f1b155f6e78d89a726b9f660a58b4 (plain)
1
2
3
4
5
6
7
function p=parallel(r1,r2)
    p=r1*r2/(r1+r2)
endfunction

Req=1+parallel(parallel(1,1),1)

disp(Req)