import math
# 1 -1 -12

# Forma directa
print ("x1 ", (-(-1)+math.sqrt((-1)*(-1)-4*1*(-12)))/(2*1));
print ("x2 ", (-(-1)-math.sqrt((-1)*(-1)-4*1*(-12)))/(2*1));
# 4, -3


# Usando variables
a = 1.0;
b = 4.0;
c = 1.0 ;   
print("x1 ", (-b+math.sqrt(b*b-4.0*a*c))/(2.0*a) );
print("x2 ", (-b-math.sqrt(b*b-4.0*a*c))/(2.0*a) );
# x1  -0.2679491924311228, x2  -3.732050807568877

