Problem 45379. 3rd side of a Triangle

Solution 2172848

Submitted on 24 Mar 2020 by Payam Morsali
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
[mx,mn]=tri_side(20,10); assert(abs(mx-52.2727)<.001) assert(abs(mn- 31.9756)<.001)

2   Pass
[mx,mn]=tri_side(50,50); assert(abs(mx-349.1417)<.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-3895.8352)<.001) assert(abs(mn-3784.4461)<.001)