Problem 44871. Calculate Resistance

Solution 1754153

Submitted on 19 Mar 2019 by Binbin Qi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
p=1;l=1;A=2; correct = 0.5; assert(isequal(Resistance(p,l,A),correct))

2   Pass
p=0.5;l=10;A=2; correct = 2.5; assert(isequal(Resistance (p,l,A),correct))