Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
format format format for t solution in Creative category for Three Points Circle by veky
def checkio(D):
p=a,b,c=eval(D.replace("(","complex("))
q=h,i,g=[p[i-2].conjugate()*(p[i-1]-p[i])for i in range(3)]
s=(a*g+b*h+c*i)/sum(q)
return"(x-{})^2+(y-{})^2={}^2".format(*((format(t,".{}g".format(3-(t<1)))
for t in(s.real,s.imag,abs(s-a)))))
June 16, 2013
Comments: