Quadratic Equation-
-A equation in which highest power of the variable is 2.
Example-
Quadratic equation is f(x)=x**2-3*x**1+2
Then value of x is 1,2 at which f(x)=0
program-
print("Enter value of a,b and c of the quadratic equation")
a=int(input())
b=int(input())
c=int(input())
D=pow(b**2-4*a*c,1/2)
ans1=(-b+D)/(2*a)
print("x=",ans1)
ans2=(-b-D)/(2*a)
print("x=",ans2)
Enter value of a,b and c of the quadratic equation
1
-3
2
x= 2.0
x= 1.0
Enter value of a,b and c of the quadratic equation
1
5
4
x= -1.0
x= -4.0