I made a code that calculates Bhaskara for me and was thinking of making this program show the graph of the equation too, but I do not know how to do that. if anyone knows how to do this, please give me a help. follow the code. Note: The graph is a parabola.
print("="*20)
valor_a = float(input("Digite o valor de A: "))
print("="*20)
valor_b = float(input("Digite o valor de B: "))
print("="*20)
valor_c = float(input("Digite o valor de C: "))
print("="*20)
delta = ((valor_b)**2)-(4*valor_a*valor_c)
valor_x1 = (-(valor_b)+((delta)**(1/2)))/(2*valor_a)
valor_x2 = (-(valor_b)-((delta)**(1/2)))/(2*valor_a)
valor_xV = -(valor_b)/(2*valor_a)
valor_yV = -(delta)/(4*valor_a)
print("Delta=", delta)
print("="*20)
print("X1=", valor_x1)
print("="*20)
print("X2=", valor_x2)
print("="*20)
print("Xv=", valor_xV)
print("="*20)
print("Yv=", valor_yV)
print("="*20)