Python | Sympy Circle() method
Circle()is used to make circle from a center and a radius, from three non-collinear points, or the equation of a circle.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
center : Point and
radius : number or sympy expression or
points : sequence of three Points or
equation : equation of a circle
Error: Raises GeometryError When the given equation is not that of a circle. When trying to construct circle from incorrect parameters.
Example #1: Using center and radius
(5, 5, 5)
Example #2: using sequence of three points
(sqrt(2)/2, sqrt(2)/2, sqrt(2)/2)
Example #3: using equation of circle
Circle(Point2D(0, 0), 5)