Given the centre of circle (x1, y1) and its radius r, find the equation of the circle having centre (x1, y1) and having radius r.
Input : x1 = 2, y1 = -3, r = 8
Output : x^2 + y^2 – 4*x + 6*y = 51.
Input : x1 = 0, y1 = 0, r = 2
Output : x^2 + y^2 – 0*x + 0*y = 4.
Given the centre of circle (x1, y1) and its radius r, we have to find the equation of the circle having centre (x1, y1) and having radius r.
the equation of circle having centre (x1, y1) and having radius r is given by :-
on expanding above equation
on arranging above we get
Below is the implementation of above approach:
x^2 + (-4 x) + y^2 + (6 y) = 51.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Radii of the three tangent circles of equal radius which are inscribed within a circle of given radius
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Shortest distance from the centre of a circle to a chord
- Angle subtended by an arc at the centre of a circle
- Equation of circle when three points on the circle are given
- Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
- Radius of the circle when the width and height of an arc is given
- Angular Sweep (Maximum points that can be enclosed in a circle of given radius)
- Find minimum radius such that atleast k point lie inside the circle
- Number of rectangles in a circle of radius R
- Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
- Radius of the inscribed circle within three tangent circles
- Area of Equilateral triangle inscribed in a Circle of radius R
- Given equation of a circle as string, find area
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- Area of the circle that has a square and a circle inscribed in it
- Check if a circle lies inside another circle or not
- Angle subtended by the chord to center of the circle when the angle subtended by the another equal chord of a congruent circle is given
- Number of common tangents between two circles if their centers and radius is given
- Maximize a value for a semicircle of given radius
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.