Cody

Solution 1432562

Submitted on 2 Feb 2018 by Doddy Kastanya
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
H = 7; P_correct = 70661.43; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

2   Pass
H = 10; P_correct = 100944.9; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

3   Pass
H = 49; P_correct = 494630.01; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

4   Pass
H = 343; P_correct = 3462410.07; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

5   Pass
H = 2401; P_correct = 24236870.49; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

6   Pass
H = 8848; P_correct = 89316047.52; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

Suggested Problems

More from this Author7