Cody

Solution 1702201

Submitted on 4 Jan 2019 by HH
  • Size: 9
  • 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
H = 7; P_correct = 70661.43; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In PRESSDEPTH (line 2) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In PRESSDEPTH (line 2) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In PRESSDEPTH (line 2) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In PRESSDEPTH (line 2) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In PRESSDEPTH (line 2) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In PRESSDEPTH (line 2) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 13)]

Suggested Problems

More from this Author7