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)