Draft

Area of Triangles in a Circle

Description:

A circle of radius r is divided into n equal sectors(shaped like pieces of pie). Each sector has two sides that are each a radius of the circle. Next, turn each sector into a triangle by placing a line(chord) between the points where the radii of the sector intersects with the circle. Return the total area of n triangles rounded to 10 decimal places.

Input:

Number of triangles n.

Radius of circle r.

Output:

Sum of area of n triangles rounded to 10 decimal places.

Conditions:

Both n and r are positive integers.

n >= 3

1 <= r <= 10

Default value for radius r is 1.

Mathematics
Geometry

Stats:

CreatedApr 26, 2024
Warriors Trained1
Total Skips0
Total Code Submissions0
Total Times Completed1
JavaScript Completions1
Total Stars0
% of votes with a positive feedback rating0% of 0
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Ad
Contributors
  • Cloud Walker Avatar
Ad