Deals with the question of one polynomial having a root outside the disk. For the current question, apply the algorithms described in the answers to the greatest common divisor of $p$ and $q$.
Igor Rivin
- 96.4k
- 11
- 153
- 366