ValueError: math domain error - Quadratische Gleichung (Python)

Ich bin sehr neu in der Python-Programmierung und auf dieser Seite. Ich arbeite gerade an einem Problem und kann den Fehler scheinbar nicht verstehen.

import math
# Problem number 5.
A5 = 5
B5 = 0
C5 = 6.5
# Root1
x9 = (-B5 + math.sqrt(B5**2 - 4*A5*C5))/(2*A5)
# Root2
x10 = (-B5 + math.sqrt(B5**2 - 4*A5*C5))/(2*A5)
# Print solution
print()
print('Problem #5')
print('Root 1: ',x9)
print('Root 2: ',x10)

Ich bekomme das, nachdem ich es ausgeführt habe:

    x9 = (-B5 + math.sqrt(B5**2 - 4*A5*C5))/(2*A5)
ValueError: math domain error

Ich habe das Problem auf Papier gelöst und für beide eine Antwort bekommen ...

Antworten auf die Frage(2)

Ihre Antwort auf die Frage