Cody

Problem 45476. Inscribed circle in a triangle

Solution 2237144

Submitted on 26 Apr 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))

t = 26.4575 t1 = 38.2288 E = 259.8076

Assertion failed.

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

t = 13.2288 t1 = 19.1144 E = 64.9519

Assertion failed.

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

t = 23.9792 t1 = 29.4896 E = 119.2424

Assertion failed.