Cody

# Problem 44394. How to calculate the length of a triangle's side given two angles and one side

Solution 1698470

Submitted on 22 Dec 2018
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
alpha = 30; beta=40; c=1; a_correct = 0.5300; assert(isequal(triangles(alpha,beta,c),a_correct))

ans = -1.2767

Assertion failed.

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

ans = 0.4424

Assertion failed.

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

ans = 0.1520

Assertion failed.

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

ans = 10.1795

Assertion failed.

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

ans = 1.9321

Assertion failed.