Problem 45379. 3rd side of a Triangle

Solution 2796040

Submitted on 6 Aug 2020 by Rafael S.T. Vieira
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
[mx,mn]=tri_side(20,10); assert(abs(mx-99.9199)<.001) assert(abs(mn- 31.9756)<.001)

2   Pass
[mx,mn]=tri_side(50,50); assert(abs(mx-1249.9579)<.001) assert(abs(mn-24.9987)<.001)

3   Pass
[mx,mn]=tri_side(1,3); assert(abs(mx-1.479)<.001) assert(abs(mn- 1.479)<.001)

4   Pass
[mx,mn]=tri_side(1000,30); assert(abs(mx-14998.3124)<.001) assert(abs(mn-3784.4461)<.001)