Cody

Solution 1688170

Submitted on 7 Dec 2018 by Rafael Hernandez-Walls
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 = 1020; h_correct = 0.3; tolerance = 1e-4; assert(abs(height(x)-h_correct)<tolerance)

ans = 0.3001

2   Pass
x = 1000; h_correct = 0.3; tolerance = 1e-2; assert(abs(height(x)-h_correct)<tolerance)

ans = 0.3081

Suggested Problems