Cody

# Problem 43940. Hydrostatic Pressure

Solution 2100696

Submitted on 21 Jan 2020
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   Fail
H = 7; P_correct = 70661.43; assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

Unrecognized function or variable 'P'. Error in PRESSDEPTH (line 2) P; Error in Test1 (line 3) assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

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

Unrecognized function or variable 'P'. Error in PRESSDEPTH (line 2) P; Error in Test2 (line 3) assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

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

Unrecognized function or variable 'P'. Error in PRESSDEPTH (line 2) P; Error in Test3 (line 3) assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

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

Unrecognized function or variable 'P'. Error in PRESSDEPTH (line 2) P; Error in Test4 (line 3) assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

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

Unrecognized function or variable 'P'. Error in PRESSDEPTH (line 2) P; Error in Test5 (line 3) assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)

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

Unrecognized function or variable 'P'. Error in PRESSDEPTH (line 2) P; Error in Test6 (line 3) assert(abs(PRESSDEPTH(H)-P_correct)<1e-4)