Cody

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

Solution 1324904

Submitted on 2 Nov 2017 by Archan Mohile
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

### Test Suite

Test Status Code Input and Output
1   Pass
alpha = 30; a_correct = 0.5300; assert(isequal(triangles(alpha),a_correct))

beta = 40 c = 1 Beta = 0.6981 a = 0.5300

2   Pass
alpha = 1; a_correct = 0.0300; assert(isequal(triangles(alpha),a_correct))

beta = 40 c = 1 Beta = 0.6981 a = 0.0300

3   Pass
alpha = 40; a_correct = 0.6500; assert(isequal(triangles(alpha),a_correct))

beta = 40 c = 1 Beta = 0.6981 a = 0.6500

4   Pass
alpha = 139; a_correct = 37.5900; assert(isequal(triangles(alpha),a_correct))

beta = 40 c = 1 Beta = 0.6981 a = 37.5900

5   Pass
alpha = 70; a_correct = 1; assert(isequal(triangles(alpha),a_correct))

beta = 40 c = 1 Beta = 0.6981 a = 1