Cody

Solution 1698473

Submitted on 22 Dec 2018 by HH
  • Size: 9
  • This is the leading solution.
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
alpha = 30; beta=40; c=1; a_correct = 0.5300; assert(isequal(triangles(alpha,beta,c),a_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In triangles (line 2) In ScoringEngineTestPoint1 (line 5) In solutionTest (line 3)]

2   Pass
alpha = 1; beta=70; c=0.5; a_correct = 0.0100; assert(isequal(triangles(alpha,beta,c),a_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In triangles (line 2) In ScoringEngineTestPoint2 (line 5) In solutionTest (line 5)]

3   Pass
alpha = 40; beta=100; c=0.2; a_correct = 0.200; assert(isequal(triangles(alpha,beta,c),a_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In triangles (line 2) In ScoringEngineTestPoint3 (line 5) In solutionTest (line 7)]

4   Pass
alpha = 1; beta=1; c=11; a_correct = 5.5; assert(isequal(triangles(alpha,beta,c),a_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In triangles (line 2) In ScoringEngineTestPoint4 (line 5) In solutionTest (line 9)]

5   Pass
alpha = 37; beta=62; c=3; a_correct = 1.8300; assert(isequal(triangles(alpha,beta,c),a_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In triangles (line 2) In ScoringEngineTestPoint5 (line 5) In solutionTest (line 11)]

Suggested Problems

More from this Author1