Cody

Solution 1108239

Submitted on 20 Jan 2017 by James
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)

ans = 7.0661e+04

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

ans = 1.0094e+05

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

ans = 4.9463e+05

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

ans = 3.4624e+06

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

ans = 2.4237e+07

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

ans = 8.9316e+07