Given a rhombus with diagonals a and b, which contains an inscribed circle. The task is to find the area of that circle in terms of a and b.
Input: l = 5, b = 6 Output: 11.582 Input: l = 8, b = 10 Output: 30.6341
Approach: From the figure, we see, the radius of inscribed circle is also a height h=OH of the right triangle AOB. To find it, we use equations for triangle’s area :
Area AOB = 1/2 * (a/2) * (b/2) = ab/8 = 12ch
where c = AB i.e. a hypotenuse. So,
r = h = ab/4c = ab/4√(a^2/4 + b^2/4) = ab/2√(a^2+b^2)
and therefore area of the circle is
A = Π * r^2 = Π a^2 b^2 /4(a2 + b2)
Below is the implementation of above approach:
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.
- Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
- Largest square that can be inscribed within a hexagon which is inscribed within an equilateral triangle
- Largest right circular cylinder that can be inscribed within a cone which is in turn inscribed within a cube
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse
- Largest right circular cone that can be inscribed within a sphere which is inscribed within a cube
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
- Largest sphere that can be inscribed within a cube which is in turn inscribed within a right circular cone
- Largest ellipse that can be inscribed within a rectangle which in turn is inscribed within a semicircle
- Biggest Reuleaux Triangle within a Square which is inscribed within a Circle
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Area of a square inscribed in a circle which is inscribed in a hexagon
- Area of decagon inscribed within the circle
- Area of the biggest possible rhombus that can be inscribed in a rectangle
- Area of the circle that has a square and a circle inscribed in it
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Radii of the three tangent circles of equal radius which are inscribed within a circle of given radius
- Radius of the inscribed circle within three tangent 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 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.