Cody

Solution 1967622

Submitted on 8 Oct 2019 by Madhu Govindarajan
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
theta = 2*pi; x_correct = [1; 1]; assert(sum(abs((solve_lin(theta)-x_correct)))< 1e-5)

b = 1 1

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

b = 1 1

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

b = 1 1