неправильные ответы для квадратных уравнений

Мне было интересно, если кто-нибудь может сказать мне, почему мой код на Python для решения квадратных уравнений не работает. Я просмотрел это и не нашел никаких ошибок.

print("This program will solve quadratic equations for you")

print("It uses the system 'ax**2 + bx + c'")

print("a, b and c are all numbers with or without decimal \
points")

print("Firstly, what is the value of a?")

a = float(input("\n\nType in the coefficient of x squared"))

b = float(input("\n\nNow for b. Type in the coefficient of x"))

c = float(input("\n\nGreat. now what is the c value? The number alone?"))

print("The first value for x is " ,(-b+(((b**2)-(4*a* c))* * 0.5)/(2*a)))

print("\n\nThe second value for x is " ,(-b-(((b * * 2)-(4*a*c))** 0.5)/(2*a)))

Когда a = 1 b = -4 и c = -3, я ожидаю -1 и 4, но получаю 5,5 и 0,5

Ответы на вопрос(1)

Ваш ответ на вопрос