Given a circle whose radius and the angle subtended at the centre by its chord is given. The task is to find the length of the chord.
Input: r = 4, x = 63 Output: 4.17809 Input:: r = 9, x = 71 Output:: 10.448
- Let the circle has center at O and has radius r, and it’s chord be AB.
- length of the chord be 2d, and the angle subtended by it on the center be 2x degrees.
- As the perpendicular dropped at the chord bisects the chord so, the perpendicular also equally divides the subtended angle 2x in x degrees.
- So, from the diagram,
d/r = sin(x*π/180)(here x deg is converted in radians)
- So, d = rsin(x*π/180)
therefore, 2d = 2rsin(x*π/180)
Below is the implementation of the above approach:
The length of the chord of the circle is 7.12603
- 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
- Angle subtended by the chord when the angle subtended by another chord of same length is given
- Length of the chord the circle if length of the another chord which is equally inclined through the diameter is given
- Distance of chord from center when distance between center and another equal length chord is given
- Angle between a chord and a tangent when angle in the alternate segment is given
- Shortest distance from the centre of a circle to a chord
- Find the Diameter or Longest chord of a Circle
- Distance between centers of two intersecting circles if the radii and common chord length is given
- Radii of the three tangent circles of equal radius which are inscribed within a circle of given radius
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- Radius of the circle when the width and height of an arc is given
- Number of rectangles in a circle of radius R
- Equation of circle from centre and radius
- Find the center of the circle using endpoints of diameter
- Minimum revolutions to move center of a circle to a target
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.