中文背景:
给定两个点坐标分别为(x1, y1), (x2, y2)和半径r,求出圆心的坐标(a, b)。
英文背景:
Given the coordinates of two points (x1, y1), (x2, y2) and radius r, find the coordinates of the center of the circle (a, b).
解法:
我们在高中学过圆的标准方程,圆心坐标为(a, b),半径为r。
当两点间的距离大于2r的时候,无法形成圆,
当两点间的距离等于2r的时候,可以形成一个圆,
当两点间的距离小于2r的时候,可以形成两个对称圆。
我们首先讨论可以形成两个圆的情况:
此时两点间的距离小于两倍的半径,
因此由题目中给出的条件,我们可以列出以下方程:
展开以后我们可以得到