Cody

Solution 247236

Submitted on 21 May 2013
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
%% sides = [1 2 1000]; y_correct = false; assert(isequal(triangle(sides),y_correct))
Error: Assertion failed.
2   Pass
%% sides = [3 4 5]; y_correct = true; assert(isequal(triangle(sides),y_correct))
alpha = 0.6435 beta = 0.9273 phi = 1.5708 d = 12 e = 3.1416
3   Pass
%% sides = [5 5 5]; y_correct = true; assert(isequal(triangle(sides),y_correct))
alpha = 1.0472 beta = 1.0472 phi = 1.0472 d = 21.6506 e = 3.1416
4   Pass
%% sides = [6 6 6]; y_correct = true; assert(isequal(triangle(sides),y_correct))
alpha = 1.0472 beta = 1.0472 phi = 1.0472 d = 31.1769 e = 3.1416
5   Pass
%% sides = [1 1 1]; y_correct = true; assert(isequal(triangle(sides),y_correct))
alpha = 1.0472 beta = 1.0472 phi = 1.0472 d = 0.8660 e = 3.1416
6   Pass
%% sides = [1 2 2]; y_correct = true; assert(isequal(triangle(sides),y_correct))
alpha = 0.5054 beta = 1.3181 phi = 1.3181 d = 1.9365 e = 3.1416
7   Fail
%% sides = [2 2 5]; y_correct = false; assert(isequal(triangle(sides),y_correct))
Error: Assertion failed.
8   Pass
%% sides = [5 2 2]; y_correct = false; assert(isequal(triangle(sides),y_correct))
alpha = 3.1416 - 1.3863i beta = 0.0000 + 0.6931i phi = 0.0000 + 0.6931i d = 0.0000 + 7.5000i e = 3.1416
9   Pass
%% sides = [1 3 1]; y_correct = false; assert(isequal(triangle(sides),y_correct))
alpha = 0.0000 + 0.9624i beta = 3.1416 - 1.9248i phi = 0.0000 + 0.9624i d = 0.0000 + 3.3541i e = 3.1416 + 0.0000i