If i have 2 equations:
x = ab
and
n = a+b
where x and n are known, and a and b are large whole numbers, how can I solve them using Python?
a and b are the solutions of: X^2 - nX + x = 0
d = n*n - 4*x
a = (- b - d**0.5)/2
b = (- b + d**0.5)/2