Problem 45379. 3rd side of a Triangle

Solution 3044323

Submitted on 3 Oct 2020 by Payam Morsali
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)

Suggested Problems

More from this Author149

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!