Problem of Apollonius: Difference between revisions

m
added whitespace before the TOC (table of contents), added a ;Task: (bold) header, moved the image to the "free" space on the right, made the image larger. .
(Added F# version)
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, moved the image to the "free" space on the right, made the image larger. .)
Line 1:
{{task|arithmetic operations}}
[[File:Apollonius.png|200px400px|Two solutions to the problem of apolloniusApollonius|right]]
 
;Task:
Implement a solution to the Problem of Apollonius   ([[wp:Problem_of_Apollonius|description on wikipedia]])   which is the problem of finding the circle that is tangent to three specified circles.   There is an [[wp:Problem_of_Apollonius#Algebraic_solutions|algebraic solution]] which is pretty straightforward. The solutions to the example in the code are shown in the image (the red circle is "internally tangent" to all three black circles and the green circle is "externally tangent" to all three black circles).
 
The solutions to the example in the code are shown in the image (below and right).   The red circle is "internally tangent" to all three black circles, and the green circle is "externally tangent" to all three black circles.
[[File:Apollonius.png|200px|Two solutions to the problem of apollonius]]
<br><br>
 
=={{header|Ada}}==