Cody

# Problem 163. Love triangles

Solution 1941877

Submitted on 18 Sep 2019 by Charles Juenger
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
sides = [1 2 1000]; y_correct = false; assert(isequal(triangle(sides),y_correct))

A = 0.0000 + 6.2146i B = 0.0000 + 6.9078i C = 3.1416 -13.1224i y = logical 0

2   Pass
sides = [3 4 5]; y_correct = true; assert(isequal(triangle(sides),y_correct))

A = 0.6435 B = 0.9273 C = 1.5708 y = logical 1

3   Pass
sides = [5 5 5]; y_correct = true; assert(isequal(triangle(sides),y_correct))

A = 1.0472 B = 1.0472 C = 1.0472 y = logical 1

4   Pass
sides = [6 6 6]; y_correct = true; assert(isequal(triangle(sides),y_correct))

A = 1.0472 B = 1.0472 C = 1.0472 y = logical 1

5   Pass
sides = [1 1 1]; y_correct = true; assert(isequal(triangle(sides),y_correct))

A = 1.0472 B = 1.0472 C = 1.0472 y = logical 1

6   Pass
sides = [1 2 2]; y_correct = true; assert(isequal(triangle(sides),y_correct))

A = 0.5054 B = 1.3181 C = 1.3181 y = logical 1

7   Pass
sides = [2 2 5]; y_correct = false; assert(isequal(triangle(sides),y_correct))

A = 0.0000 + 0.6931i B = 0.0000 + 0.6931i C = 3.1416 - 1.3863i y = logical 0

8   Pass
sides = [5 2 2]; y_correct = false; assert(isequal(triangle(sides),y_correct))

A = 3.1416 - 1.3863i B = 0.0000 + 0.6931i C = 0.0000 + 0.6931i y = logical 0

9   Pass
sides = [1 3 1]; y_correct = false; assert(isequal(triangle(sides),y_correct))

A = 0.0000 + 0.9624i B = 3.1416 - 1.9248i C = 0.0000 + 0.9624i y = logical 0