# Radii of the three tangent circles of equal radius which are inscribed within a circle of given radius

Given here is a circle of a given radius. Inside it, three tangent circles of equal radius are inscribed. The task is to find the radii of these tangent circles.

**Examples:**

Input:R = 4Output:1.858Input:R = 11Output::5.1095

**Approach**:

- Let the radii of the tangent circles be
**r**, and the radius of the circumscribing circle

is**R**.**x**is the smaller distance from the circumference of the tangent circle and the center of the circumscribing circle. - From the diagram, it is very clear,

**2r + x = R** - now in triangle
**OBC**,

**cos 30 = r/(r+x)**

rcos30 + xcos30 = r

x = r(1-cos30)/cos30 - also,
**x = R-2r** - So,

**R-2r = r(1-cos30)/cos30**

R-2r = 0.133r/0.867

R-2r = 0.153r

R = 2.153r

so,**r = 0.4645R**

## C++

`// C++ program to find the radii ` `// of the three tangent circles ` `// of equal radius when the radius ` `// of the circumscribed circle is given ` ` ` `#include <bits/stdc++.h> ` `using` `namespace` `std; ` ` ` `void` `threetangcircle(` `int` `R) ` `{ ` ` ` `cout << ` `"The radii of the tangent circles is "` ` ` `<< 0.4645 * R << endl; ` `} ` ` ` `// Driver code ` `int` `main() ` `{ ` ` ` `int` `R = 4; ` ` ` `threetangcircle(R); ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`// Java program to find the radii ` `// of the three tangent circles ` `// of equal radius when the radius ` `// of the circumscribed circle is given ` `import` `java.io.*; ` ` ` `class` `GFG ` `{ ` ` ` `static` `void` `threetangcircle(` `int` `R) ` `{ ` ` ` `System.out.print(` `"The radii of the tangent circles is "` ` ` `+ ` `0.4645` `* R); ` `} ` ` ` `// Driver code ` `public` `static` `void` `main (String[] args) ` `{ ` ` ` `int` `R = ` `4` `; ` ` ` `threetangcircle(R); ` `} ` `} ` ` ` `// This code is contributed by anuj_67.. ` |

*chevron_right*

*filter_none*

## Python3

`# Python3 program to find the radii ` `# of the three tangent circles ` `# of equal radius when the radius ` `# of the circumscribed circle is given ` ` ` `def` `threetangcircle(R): ` ` ` `print` `(` `"The radii of the tangent"` `, ` ` ` `"circles is "` `, end ` `=` `""); ` ` ` `print` `(` `0.4645` `*` `R); ` ` ` `# Driver code ` `R ` `=` `4` `; ` `threetangcircle(R); ` ` ` `# This code is contributed ` `# by Princi Singh ` |

*chevron_right*

*filter_none*

## C#

`// C# program to find the radii ` `// of the three tangent circles ` `// of equal radius when the radius ` `// of the circumscribed circle is given ` `using` `System; ` ` ` `class` `GFG ` `{ ` ` ` `static` `void` `threetangcircle(` `int` `R) ` `{ ` ` ` `Console.WriteLine(` `"The radii of the tangent circles is "` ` ` `+ 0.4645 * R); ` `} ` ` ` `// Driver code ` `public` `static` `void` `Main () ` `{ ` ` ` `int` `R = 4; ` ` ` `threetangcircle(R); ` `} ` `} ` ` ` `// This code is contributed by anuj_67.. ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP program to find the radii ` `// of the three tangent circles ` `// of equal radius when the radius ` `// of the circumscribed circle is given ` ` ` `function` `threetangcircle(` `$R` `) ` `{ ` ` ` `echo` `"The radii of the tangent circles is "` `, ` ` ` `( 0.4645 * ` `$R` `); ` `} ` ` ` `// Driver code ` `$R` `= 4; ` `threetangcircle(` `$R` `); ` ` ` `// This code is contributed by ihritik ` `?> ` |

*chevron_right*

*filter_none*

**Output:**

The radii of the tangent circles is 1.858

## Recommended Posts:

- Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
- Find the radii of the circles which are lined in a row, and distance between the centers of first and last circle is given
- Number of common tangents between two circles if their centers and radius is given
- 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
- 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
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
- Distance between centers of two intersecting circles if the radii and common chord length is given
- Length of the transverse common tangent between the two non intersecting circles
- Length of direct common tangent between two intersecting Circles
- Length of direct common tangent between the two non-intersecting Circles
- Length of the direct common tangent between two externally touching circles

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.