Cody

Solution 2420547

Submitted on 30 May 2020
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
theta = 2*pi; x_correct = [1; 1]; assert(sum(abs((solve_lin(theta)-x_correct)))< 1e-5)

theta = 0.7501 x = 0.0499 1.4133

Assertion failed.

2   Fail
theta = pi; x_correct = [-1; -1]; assert(sum(abs((solve_lin(theta)-x_correct)))< 1e-5)

theta = 0.5069 x = 0.3887 1.3597

Assertion failed.

3   Fail
theta = -0.5; x_correct = [1.357;0.3982]; assert(sum(abs((solve_lin(theta)-x_correct)))< 1e-4)

theta = 2.9495 x = -1.1725 -0.7907

Assertion failed.

Suggested Problems

More from this Author13