Home > Backend Development > C++ > body text

What is the area of ​​a circle inscribed in a rhombus?

WBOY
Release: 2023-09-05 08:25:05
forward
1222 people have browsed it

The inscribed circle of a rhombus is tangent to its four sides and four endpoints. The sides of the rhombus are tangent to the circle.

What is the area of ​​a circle inscribed in a rhombus?

Here, r is the radius found using the diagonal of a and the given value.

Now the area triangle AOB = ½ * OA * OB = ½ * AB * r (both using the formula ½*b*h).

½ *a/2*b/2 = ½ *( √ (a2/4 b2/4))*r

a *b/8 = √ (a2 b2 )*r /4

r = a*b/ 2√ (a2 b2 )

Circle area = π*r*r = π*(a2*b2)/4(a2 support> b2 )

Example

The diagonals of rhombus 5 and 10.

The area is 15.700000

Sample code

Real-time demonstration

#include <stdio.h>
int main(void) {
   int a = 5; int b= 10;
   float pie = 3.14;
   float area = (float)((pie*a*a*b*b)/(4*((a*a)+(b*b))));
   printf("The area of circle inscribed in the rhombus of diagonal %d and %d is %f",a,b,area);
   return 0;
}
Copy after login

Output

The area of circle inscribed in the rhombus of diagonal 5 and 10 is 15.700000
Copy after login

The above is the detailed content of What is the area of ​​a circle inscribed in a rhombus?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template