# Python | Sympy equation() method

In Simpy, the function equation() is used to make equation of a given circle.

Syntax : equation(x='x', y='y')

Parameters:
x : str or Symbol, optional
y : str or Symbol, optional

Returns : SymPy expression

Example #1:

 # import sympy, Point and Circle from sympy import Point, Circle    # using Circle() c1 = Circle(Point(0, 0), 5) c2 = c1.equation()    print(c2)

Output:

x**2 + y**2 - 25

Example #2:

 # import sympy, Point and Circle from sympy import Point, Circle    # using Circle() c3 = Circle(Point(1, 2), 5) c4 = c3.equation()    print(c4)

Output:

(x - 1)**2 + (y - 2)**2 - 25
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.