blob: 1dec4892dafc2fad62860c61b77d5319749f75bb (
plain)
1
2
3
4
5
6
7
8
|
def discriminant_value(x,y,z):
discriminant = (y**2) - (4*x*z)
if discriminant > 0:
return ("Two solutions",discriminant)
elif discriminant == 0:
return ("one solution",discriminant)
elif discriminant < 0:
return ("no real solution",discriminant)
|