Problem with the third test suite
in 3rd case,
they intersect at two points.
In geometry, tangent circles (also known as kissing circles) are circles that intersect in a single point.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x1=[0,0];
x2=[5,5];
r1=3;
r2=2;
assert(isequal(touch(x1,x2,r1,r2),0))
y =
logical
0
|
2 | Pass |
x1=[0,0];
x2=[3,4];
r1=3;
r2=2;
assert(isequal(touch(x1,x2,r1,r2),1))
y =
logical
1
|
3 | Fail |
x1=[2,1];
x2=[3,4];
r1=4;
r2=2;
assert(isequal(touch(x1,x2,r1,r2),0))
y =
logical
1
|
4 | Pass |
x1=[-1,0];
x2=[3,-3];
r1=3;
r2=8;
assert(isequal(touch(x1,x2,r1,r2),1))
y =
logical
1
|
5 | Pass |
x1=[-5,-5];
x2=[5,5];
r1=5;
r2=5;
assert(isequal(touch(x1,x2,r1,r2),0))
y =
logical
0
|
874 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3619 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
Check that number is whole number
1070 Solvers
54 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!