Cody

Problem 45476. Inscribed circle in a triangle

Solution 2237148

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 = 0.0000 +22.3607i t1 = 25.0000 +11.1803i E = 1.0846e-14 + 3.3541e+02i

Assertion failed.

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

t = 0.0000 +11.1803i t1 = 12.5000 + 5.5902i E = 0.0000 -83.8525i

Assertion failed.

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

t = 20.0000 +11.1803i t1 = 27.5000 + 5.5902i E = 1.5000e+02 + 8.3853e+01i

Assertion failed.

Suggested Problems

More from this Author148