History, History Of Technology, Software Engineering, Programming, Python.
imaginary numbers: import math # Coefficients of the quadratic equation # a*x^2 + b*x + c = 0 a = 1 b = 6 c = 9 # Calculate the discriminant D = b**2 - 4*a*c # Check if the discriminant is positive, negative or zero if D > 0: # Two distinct real roots exist x1 = (-b + math.sqrt(D)) / (2*a) x2 = (-b