A line and a circle intersect at A and B, as shown below. Find the distance between A and B. The circle is x^2 + y^2 = 1, and the line is y = x.
A and B are endpoints of the diameter
The radius of the circle =1
So AB = 2