Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Sunday, April 2, 2023

ZEROES OF A QUADRATIC EQUATION

print("Enter the coefficients of equation in the form of ax^2+bx+c")
a=int(input("Enter the value of a = "))
b=int(input("Enter the value of b = "))
c=int(input("Enter the value of c = "))
d=((b**2)-(4*a*c))
x1=((-b)-(d)**(1/2))/(2*a)
x2=((-b)+(d)**(1/2))/(2*a)
print("The formula of finding roots = ","d=b^2-4ac")
print("The dicriminant = ",d)
print("The formula of finding roots = ","-b-(d)**0.5,","-b+(d)**0.5")
print("                                 -----------  ---------")
print("                                     2a            2a")
print("Zeroes of the quadratic equation are = ",x1,x2)

OUTPUT