Problem 282. Circle and Quadratic
the visualisation has an error, it should be
C = @(x) real(-sqrt(R^2-(x-T(1)).^2) + T(2)); % Lower half circle
Thanks Gunther. The function does produce the correct graphic, but only when T(1)=0 as in my example.
The third test is a pain. Why such a small circle for high precision? It's already a single-point tangent circle. It is no fun to look for the specific method the author had in mind when we already have the answer. IMHO, problems should be open; they accept all kinds of solutions (leaving people to explore clever ideas). Or they should be closed, and a specific method is requested (so people don't wander to dead ends). Precision should be a requirement only for closed ones.
Solution CommentsShow comments
Problem Recent Solvers14
Wind outward from the center ...
Convert hex color specification to MATLAB RGB
More from this Author6
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!