Home > Backend Development > C++ > body text

What is the area of ​​a circle within a rectangle inscribed in a semicircle?

王林
Release: 2023-09-13 08:45:21
forward
1667 people have browsed it

A circle inscribed in a rectangle is tangent to the longer side of the rectangle, that is, the length is tangent to the circle.

A rectangle inscribed in a semicircle touches two points on the arc of the semicircle. The width of the rectangle is equal to the diameter of the circle.

What is the area of ​​a circle within a rectangle inscribed in a semicircle?

If R is the radius of the semicircle.

The length of the rectangle = √2R/2

The width of the rectangle = R/√2

Inscribed circle The radius of is

r = b/2 = R/2√2

Using this formula we can calculate The area of ​​a circle inscribed in a rectangle inscribed in a semicircle,

area = (π*r2) = π*R/8

Example

Demonstration

#include <stdio.h>
int main() {
   float a = 5;
   float area = 3.14 * a/ 8;
   printf("The area of the circle inscribed in a rectangle inscribed in a semicircle of radius %f is %f", a , area);
   return 0;
}
Copy after login

Output

The area of the circle inscribed in a rectangle inscribed in a semicircle of radius 5.00000 is 1.962500
Copy after login

The above is the detailed content of What is the area of ​​a circle within a rectangle inscribed in a semicircle?. 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