Compute the area of a Q - MATLAB Cody - MATLAB Central

Problem 60331. Compute the area of a Q

Difficulty:Rate
A figure resembling a Q (as in “quadrature”) is constructed in the following way: A right triangle is drawn with the left vertex at the point (-a,0) and the top vertex at the point (0,c). The centers of five circles, shown with Xs, are located at the midpoints of the upper two sides, the altitude from the top vertex, and the segments from the two bottom vertices to the point where the altitude meets the bottom side. The radii of the five circles are equal to half the length of the respective segments. Then the Q is formed by the four shaded regions.
Write a function to compute the area of the Q (i.e., the total area of the shaded regions) given a and c.

Solution Stats

88.89% Correct | 11.11% Incorrect
Last Solution submitted on Jul 17, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Group

YouTube-inspired Image
YouTube-inspired
  • 15 Problems
  • 2 Finishers

Problem Recent Solvers6

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!