Given three points whose coordinates are:
(p,t) (q,u) (s,z)
...the equation of the circle defined by those three points is:
x^2 + y^2 + Ax + By + C = 0
where:
A=((u-t)*z^2+(-u^2+t^2-q^2+p^2)*z+t*u^2+(-t^2+s^2-p^2)*u+(q^2-s^2)*t)/((q-p)*z+(p-s)*u+(s-q)*t)
B=-((q-p)*z^2+(p-s)*u^2+(s-q)*t^2+(q-p)*s^2+(p^2-q^2)*s+p*q^2-p^2*q)/((q-p)*z+(p-s)*u+(s-q)*t)
C=-((p*u-q*t)*z^2+(-p*u^2+q*t^2-p*q^2+p^2*q)*z+s*t*u^2+(-s*t^2+p*s^2-p^2*s)*u+(q^2*s-q*s^2)*t)/((q-p)*z+(p-s)*u+(s-q)*t)
The above is the general solution. You can put the formulas for A, B, and C into your program
and find the equation for any circle, given 3 points.
For your particular problem with points (0,1) (1,0) (0,-1) you will get:
A=0
B=0
C=-1
... so the equation will be
x^2 + y^2 -1 = 0 (the unit circle)