Home  >  Article  >  Backend Development  >  What is the area of ​​the circular sector?

What is the area of ​​the circular sector?

WBOY
WBOYforward
2023-08-30 08:33:11689browse

A circular sector, also known as a circular sector/sector of a circle, is a part of a circle enclosed by an arc between two radii. This area is bounded by two radii and an arc. To find the area inscribed, we need to find the angle between the two radii. The total area is equal to 360 degrees of angle. To find the area of ​​an angle, we multiply the area by θ/360. This gives the area of ​​the inscribed part.

where θ is the angle (in degrees) between the two radii.

What is the area of ​​the circular sector?

The area of ​​the circular sector = π*r*r*(θ/360).

Example

The area of ​​a circular sector with a radius of 5 and an angle of 60 degrees is 13.083.

Area = (3.14*5*5)*(60/360) = 13.03

Sample code

Demonstration

#include <stdio.h>
int main(void) {
int r = 5;
   int angle = 60;
   float pie = 3.14;
   float area = (float)(pie*r*r*angle/360);
   printf("The area of sector of a circle of radius %d with an angle of %d is %f", r,angle,area);
   return 0;
}

Output

The area of sector of a circle of radius 5 with an angle of 60 is 13.083333

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

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete