Home > Backend Development > C++ > body text

What is the area of ​​the circumcircle of a right triangle?

WBOY
Release: 2023-09-07 15:05:01
forward
1353 people have browsed it

When the hypotenuse (H) of a right triangle is given, use the formula πH2/4 to find the area of ​​the circumcircle of the right triangle.

This formula is derived by exploiting the fact that the circumscribed circle touches all the angles of the triangle, in this case the hypothetical maximum length between two points passing through the center of the circle. This makes the hypotenuse the diameter of the circle.

This is why the area of ​​a circle is πd2/4. (d = 2r) Replace d with H.

What is the area of ​​the circumcircle of a right triangle?

Example

Hypotenuse = 8

Circle area = 50.26

Example code

Live demo

#include <stdio.h>
int main(void) {
   int H = 14;
   float pie = 3.14;
   float area = (float)((pie*H*H)/4);
   printf("the area of circumcircle of a right angled triangle of Hypotenuse %d is %f",H,area);
   return 0;
}
Copy after login

Output

the area of circumcircle of a right angled triangle of Hypotenuse 14 is 153.860016
Copy after login

The above is the detailed content of What is the area of ​​the circumcircle of a right triangle?. For more information, please follow other related articles on the PHP Chinese website!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!