Problem 43599. Find the sides of an isosceles triangle when given its area and height from its base to apex

Solution 1044092

Submitted on 4 Nov 2016 by LY Cao
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
S = 12; h=4; y_correct = [5 5 6]; assert(isequal(sidesOfTheTriangle(S ,h),y_correct))

2   Pass
S = 60; h=5; y_correct = [ 13 13 24]; assert(isequal(sidesOfTheTriangle(S ,h),y_correct))

3   Pass
S = 120; h=8; y_correct = [ 17 17 30]; assert(isequal(sidesOfTheTriangle(S ,h),y_correct))

Suggested Problems

More from this Author37

Community Treasure Hunt

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

Start Hunting!