Problem 45178. An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the sides of the polygon.
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Rafael S.T. Vieira
on 5 Sep 2020
This problem needs to have some tolerance to error.
goc3
on 29 Sep 2020
The test suite now contains a tolerance, as well as added test cases, while no longer revealing the solution.
Ramon Villamangca
on 25 Dec 2021
Error Message: Unrecognized function or variable 'tolerance'.
Dyuman Joshi
on 25 Dec 2021
Test suite has been corrected.
Solution Comments
Show commentsProblem Recent Solvers34
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
5871 Solvers
-
702 Solvers
-
convert matrix to single column
395 Solvers
-
1244 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1718 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!