Cody

Solution 1863317

Submitted on 2 Jul 2019 by Nikolaos Nikolaou
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
a = 3; b = 4; c = 5; y_correct = 2.4; assert(isequal(triangle_height(a, b, c), y_correct));

t1 = 25 t2 = 25 y = 2.4000

2   Pass
a = 1; b = 2; c = 3; y_correct = NaN; assert(isequaln(triangle_height(a, b, c), y_correct));

t1 = 9 t2 = 5 y = NaN

3   Pass
a = 0; b = 1; c = 1; y_correct = NaN; assert(isequaln(triangle_height(a, b, c), y_correct));

t1 = 1 t2 = 1 y = NaN

4   Pass
a = -3; b = -4; c = -5; y_correct = NaN; assert(isequaln(triangle_height(a, b, c), y_correct));

t1 = 25 t2 = 25 y = NaN

Suggested Problems