The dimension of a rectangle is given. There are two circles of equal size that are inscribed inside it.The circles are tangent to each other and to the rectangle(on the length side).
Find the area of of the red shaded portion.
Nb. I believe its more fun & ethical to try and figure out the answer by urself instead of just loooking for the ratio on the test suites.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers16
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15782 Solvers
-
Find common elements in matrix rows
2713 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3671 Solvers
-
Set the array elements whose value is 13 to 0
1438 Solvers
-
613 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Asif, Thanks for another nice problem.
I think the description would be improved if it said the "red shaded portion", because there are two shaded portions in the drawing.
@ChrisR Going by the test suite I think the illustration should actually look like this:
clear variables
close all
[a, b] = deal(7, 2);
rectangle("Position", [-a/2 0 a b])
rectangle("Position", [-a/2 0 a/2 b], "FaceColor", "red")
rectangle("Position", [ -b 0 b b], "Curvature", [1 1], "FaceColor", "white")
rectangle("Position", [ 0 0 b b], "Curvature", [1 1])
axis equal
set(gca, "XTick", [], "YTick", [], "XColor", "w", "YColor", "w")
You're right, Christian. Thanks for correcting my comment, which I deleted.