image thumbnail

Problem of Apollonius

version 1.0.0.0 (2.24 KB) by Abhilash Harpale
The code solves the Apollonius problem using a simple algebric formula.

319 Downloads

Updated 05 Jul 2012

View License

Apollonius' problem is to construct circles that are tangent to three given circles in a plane. Apollonius of Perga posed and solved this famous problem in his work Ἐπαφαί; this work has been lost, but a 4th-century report of his results by Pappus of Alexandria has survived.
Three given circles generically have eight different circles that are tangent to them and each solution circle encloses or excludes the three given circles in a different way.
The code takes the x,y coordinates of the centre of each circle and its radius as input. "cir=[x y r]"
If the radius of any circle is given a '-' sign, then that corresponding circle will lie inside the solution tangent circle, else it will be outside.

Cite As

Abhilash Harpale (2021). Problem of Apollonius (https://www.mathworks.com/matlabcentral/fileexchange/37403-problem-of-apollonius), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Apollonius problem/