Group Abstract Group Abstract

Message Boards Message Boards

0
|
256 Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

Why isn't the graph of the equation a line and a circle?

Posted 2 days ago

enter image description here

ContourPlot[
 Evaluate@(x - 2) Sqrt[x^2 + y^2 - 5] == 0, {x, -3, 3}, {y, -3, 3}, 
 Frame -> False, Axes -> True, AspectRatio -> Automatic]

enter image description here

POSTED BY: Wen Dao

The circle is exactly the edge of the function domain. I suppose that the numeric algorithms of ContourPlot work mainly on sign variations, which do not happen across the circle. We must force some symbolic processing:

Region@ImplicitRegion[
  Reduce[(x - 2) Sqrt[x^2 + y^2 - 5] == 0, {x, y}, Reals],
  {{x, -3, 3}, {y, -3, 3}}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard