I noticed when a function I wrote to identify common roots didn't catch some, can anyone explain why this is or how to get around it? See the below code and output.
phi=c(1,-1); theta=c(1,-0.5, -0.5)
a = polyroot(phi)
b = polyroot(theta)
a
#[1] 1+0i
b
#[1] 1-0i -2+0i
intersect(a,b)
complex(0)
intersect(1+0i, c(1-0i, -2+0i))
#[1] 1+0i