Total circles area: Difference between revisions

m
(Add C# implementation)
m (→‎{{header|Wren}}: Minor tidy)
Line 4,031:
{{libheader|Wren-math}}
Limited to 3000 boxes to finish in a reasonable time (about 25 seconds) with reasonable precision.
<syntaxhighlight lang="ecmascriptwren">import "./dynamic" for Tuple
import "./math" for Nums
 
var Circle = Tuple.create("Circle", ["x", "y", "r"])
Line 4,093:
{{libheader|Wren-sort}}
Quicker (about 4.7 seconds) and more precise (limited to 5 d.p. but achieves 7) than the above version.
<syntaxhighlight lang="ecmascriptwren">import "./dynamic" for Tuple
import "./math" for Nums
import "./sort" for Sort
 
var Point = Tuple.create("Point", ["x", "y"])
9,492

edits