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)
A =
1.0000 -0.0000
0.0000 1.0000
|
2 | Pass |
theta = pi;
x_correct = [-1; -1];
assert(sum(abs((solve_lin(theta)-x_correct)))< 1e-5)
A =
-1.0000 0.0000
-0.0000 -1.0000
|
3 | Pass |
theta = -0.5;
x_correct = [1.357;0.3982];
assert(sum(abs((solve_lin(theta)-x_correct)))< 1e-4)
A =
0.8776 -0.4794
0.4794 0.8776
|
Are all the three given point in the same line?
270 Solvers
Create matrix of replicated elements
321 Solvers
462 Solvers
Is this triangle right-angled?
2874 Solvers
363 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!