Jump to content

Circles of given radius through two points: Difference between revisions

→‎{{header|МК-61/52}}: remove spurious horizontal rule added by Perl 6 entry
(→‎{{header|Perl 6}}: alternative solution in the Complex plane)
(→‎{{header|МК-61/52}}: remove spurious horizontal rule added by Perl 6 entry)
Line 463:
''Output'': "8.L" if the points are coincident; "8.-" if the points are opposite ends of a diameter of the circle, РY and РZ are coordinates of the center; "8.Г" if the points are farther away from each other than a diameter of a circle; else РX, РY and РZ, РT are coordinates of the circles centers.
 
 
----
=={{header|Perl 6}}==
<lang Perl6>sub circles(@A, @B where (not [and] @A Z== @B), $radius where * > 0) {
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.