Let the roots of the first equation be x1 and x2, so their sum is -2a and product is -b^2. Let the roots of the second equation be y1 and y2, so their sum is -2p and product is -q^2. The coordinates of the endpoints of the diameter are (x1, y1) and (x2, y2). The square of the diameter AB^2 is (x1 - x2)^2 + (y1 - y2)^2. We know (x1 - x2)^2 = (x1 + x2)^2 - 4*x1*x2 = (-2a)^2 - 4*(-b^2) = 4(a^2 + b^2). Similarly, (y1 - y2)^2 = (-2p)^2 - 4*(-q^2) = 4(p^2 + q^2). Thus, AB^2 = 4(a^2 + b^2 + p^2 + q^2). Since the radius is half of the diameter, the radius is sqrt(a^2 + b^2 + p^2 + q^2).