Cody

Problem 45476. Inscribed circle in a triangle

Solution 2430511

Submitted on 31 May 2020
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   Fail
assert(isequal(ins_cir_tri(20,30,10),600))

Error in solution: Line: 10 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "ins_cir_tri".)

2   Fail
assert(isequal(ins_cir_tri(15,10,5),150))

Error in solution: Line: 10 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "ins_cir_tri".)

3   Fail
assert(abs(ins_cir_tri(25,10,5)-194.4444)<0.001)

Error in solution: Line: 10 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "ins_cir_tri".)

Suggested Problems

More from this Author148