Problem 44817. Wrecked Angles?
It's time for some simple geometry fun to start off the new year.
You will be given the perimeter P and the area A of a rectangle. With these two values, calculate the area of the circle that circumscribes this rectangle. This means we're looking for the area of the circle that touches this rectangle only at the four vertices of the rectangle.
Good luck, and Happy 2019!
Solution Stats
Problem Comments
-
1 Comment
Quite a weird test suite, better to use a consistent tolerance for all the test cases
Solution Comments
Show commentsProblem Recent Solvers20
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1928 Solvers
-
10191 Solvers
-
Permute diagonal and antidiagonal
484 Solvers
-
Generate N equally spaced intervals between -L and L
916 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1462 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!