Getting double a^2 + b^2 values.