Help us understand the problem. What is going on with this article?

# Cross points of circles in Python

More than 1 year has passed since last update.
```def arg(p):
return np.arctan2(p, p)

def polar(a, r):
return [np.cos(r) * a, np.sin(r) * a]

def getCrossPoints(c1, c1r, c2, c2r):
d = np.linalg.norm(c1-c2)
a = np.arccos((c1r * c1r + d * d - c2r * c2r) / (2*c1r*d))
t = arg(c2 - c1)
return [c1 + polar(c1r, t-a), c1 + polar(c1r, t+a)]

a = []
a.append(map(int, raw_input().split()))
for aa in a:
cx = aa
cy = aa
r = aa
c1 = np.array([cx,cy])
c1r = r
a = []
a.append(map(int, raw_input().split()))
for aa in a:
cx = aa
cy = aa
r = aa
c2 = np.array([cx,cy])
c2r = r

# print(c1,c1r,c2,c2r)
gcp = getCrossPoints(c1, c1r, c2, c2r)
# gcp = np.sort(gcp,axis=0)
out = ""
for x in gcp:
for xx in x:
if (out):
out = out + " "
out = out + str(xx)
print(out)
```
```0 0 2
2 0 2
1.0 -1.73205080757 1.0 1.73205080757
```

# Refs.

Why not register and get more from Qiita?
1. We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
2. you can read useful information later efficiently
By "stocking" the articles you like, you can search right away