Cody

Solution 1997489

Submitted on 31 Oct 2019
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
A = 4; B = 3; C = 2; correct_ans = 7; assert(isequal(BT_Solver(A,B,C),correct_ans))

center_area = 7 8 9 10 11 12 13 14 15 16 17 18 ans = 2.6458 2.8284 3.0000 3.1623 3.3166 3.4641 3.6056 3.7417 3.8730 4.0000 4.1231 4.2426

Assertion failed.

2   Fail
A = 4; B = 3; C = 5; correct_ans = 8; assert(isequal(BT_Solver(A,B,C),correct_ans))

center_area = 8 9 10 11 12 13 14 15 16 17 18 19 ans = 2.8284 3.0000 3.1623 3.3166 3.4641 3.6056 3.7417 3.8730 4.0000 4.1231 4.2426 4.3589

Assertion failed.

3   Fail
A = 30; B = 14; C = 15; correct_ans = 41; assert(isequal(BT_Solver(A,B,C),correct_ans))

center_area = 36 37 38 39 40 41 42 43 44 45 ans = 6.0000 6.0828 6.1644 6.2450 6.3246 6.4031 6.4807 6.5574 6.6332 6.7082

Assertion failed.

4   Fail
A = 3; B = 5; C = 12; correct_ans = 16; assert(isequal(BT_Solver(A,B,C),correct_ans))

center_area = 16 17 18 19 20 21 22 23 24 25 26 ans = 4.0000 4.1231 4.2426 4.3589 4.4721 4.5826 4.6904 4.7958 4.8990 5.0000 5.0990

Assertion failed.

5   Fail
A = 54; B = 48; C = 90; correct_ans = 132; assert(isequal(BT_Solver(A,B,C),correct_ans))

center_area = 100 101 102 103 104 105 106 107 ans = 10.0000 10.0499 10.0995 10.1489 10.1980 10.2470 10.2956 10.3441

Assertion failed.

Suggested Problems

More from this Author2