Trying to use sum to figure about resistor formula, 1/[(1/r1)+1rn)] where n can be any number.
What i have come up with:
function R = scirpt(y) R = 1/sum(1/(y));end
Well be entering this:
scirpt([100,200,300]) should output 54.5455
if true % code
end
Best Answer