Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
p1=[-1;0];
p2=[2;3];
pe=[-2;0];
d=round(1e+6*dist2line(p1,p2,pe))/1e+6;
assert(isequal(d,7.071070e-01))
|
2 | Pass |
%%
p1=[-1;0];
p2=[2;3];
pe=[-0.8;0.1];
d=round(1e+6*dist2line(p1,p2,pe))/1e+6;
assert(isequal(d,7.071100e-02))
|
3 | Pass |
%%
p1=[-1;0];
p2=[2;3];
pe=[0;0.9];
d=round(1e+6*dist2line(p1,p2,pe))/1e+6;
assert(isequal(d,7.071100e-02))
|
4 | Pass |
%%
p1=[0;-1];
p2=[0;1];
pe=[-pi;100];
d=round(1e+6*dist2line(p1,p2,pe))/1e+6;
assert(isequal(d,3.141593))
|
5 | Pass |
%%
p1=[-1;0];
p2=[2;3];
pe=[0;1];
d=round(1e+6*dist2line(p1,p2,pe))/1e+6;
assert(isequal(d,0))
|
2183 Solvers
Find state names that start with the letter N
598 Solvers
Is my wife right? Now with even more wrong husband
1241 Solvers
Number of digits in an integer
336 Solvers
construct matrix with identical rows
168 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!