Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x1=[2 2 6];
x2=[1 -1 0];
[x,y] = system_solution(x1,x2);
assert(sum(abs(x-1.5))<1e-8)
assert(sum(abs(y-1.5))<1e-8)
|
2 | Pass |
x1=[3 2 5];
x2=[2 2 4];
[x,y] = system_solution(x1,x2);
assert(sum(abs(x-1))<1e-8)
assert(sum(abs(y-1))<1e-8)
|
3 | Pass |
x1=[2 1 1];
x2=[4 1 6];
[x,y] = system_solution(x1,x2);
assert(sum(abs(x-2.5))<1e-8)
assert(sum(abs(y+4))<1e-8)
|
4 | Pass |
x1=[1 1 11];
x2=[1 -1 -3];
[x,y] = system_solution(x1,x2);
assert(sum(abs(x-4))<1e-8)
assert(sum(abs(y-7))<1e-8)
|
5 | Pass |
x1=[2 1 8];
x2=[2 -1 4];
[x,y] = system_solution(x1,x2);
assert(sum(abs(x-3))<1e-8)
assert(sum(abs(y-2))<1e-8)
|
6 | Pass |
x1=[1 1 2];
x2=[1 -1 -2];
[x,y] = system_solution(x1,x2);
assert(sum(abs(x-0))<1e-8)
assert(sum(abs(y-2))<1e-8)
|
Extract leading non-zero digit
1205 Solvers
1310 Solvers
Return the first and last characters of a character array
3460 Solvers
484 Solvers
Find the area of a rectangle if length of the diagonal is given.
130 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!