Total circles area: Difference between revisions

Content added Content deleted
m (→‎{{header|Java}}: Remove vanity tags)
m (used different size for illustration.)
Line 1: Line 1:
[[Category:Geometry]]

{{task}}
{{task}}

[[File:total_circles_area_full.png|200px|thumb|right|Example circles]]
[[File:total_circles_area_filtered.png|200px|thumb|right|Example circles filtered]]
[[File:total_circles_area_full.png|300px|thumb|right|Example circles]]
[[File:total_circles_area_filtered.png|300px|thumb|right|Example circles filtered]]


Given some partially overlapping circles on the plane, compute and show the total area covered by them, with four or six (or a little more) decimal digits of precision. The area covered by two or more disks needs to be counted only once.
Given some partially overlapping circles on the plane, compute and show the total area covered by them, with four or six (or a little more) decimal digits of precision. The area covered by two or more disks needs to be counted only once.
Line 2,861: Line 2,864:
{{out}}
{{out}}
<pre>Approximated area: 21.5616</pre>
<pre>Approximated area: 21.5616</pre>

[[Category:Geometry]]