Cody

Problem 45476. Inscribed circle in a triangle

Solution 2232771

Submitted on 24 Apr 2020 by Asif Newaz
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
assert(isequal(ins_cir_tri(20,30,10),600))

z = 10 s = 60

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

z = 5 s = 30

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

z = 3.8889 s = 38.8889

Suggested Problems

More from this Author148