Cody

Problem 382. Leaking?

Solution 3908448

Submitted on 29 Nov 2020 by Marek Macák
  • Size: 12
  • This is the leading solution.
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
x=1; m=4; n=1; leaking_correct = 2; assert(abs(leaking(x,m,n)-leaking_correct)<1000*eps)

ans = []

2   Pass
x=1; m=2; n=50; leaking_correct = 0.2; assert(abs(leaking(x,m,n)-leaking_correct)<1000*eps)

ans = []

3   Pass
x=0.2; m=50; n=2; leaking_correct = 1; assert(abs(leaking(x,m,n)-leaking_correct)<1000*eps)

ans = []

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!