QUOTE(The ArchiTECT @ 17 Sep, 2007 - 04:54 AM)

Ey,
Of course the formula was wrong, but...
If you would fill in these numbers in the formula and do some head calculations you will immediately notice that you were taking the square root of a negative number.
So unless you are working in the complex space...
Sincerly Yours,
Archi.
well lets do that, shall we:
the numbers are as follows:
QUOTE
a = 2, b = -1.2, and c = -6.3
so lets do some math here:(using the correct formula!)
x1 = ((-b + Math.sqrt(b*b - 4*a*c))/(2*a));
x1 = ((-(-1.2) + Math.sqrt((-1.2)*(-1.2) - 4*2*(-6.3)))/(2*2));
x1 = (1.2 + Math.sqrt(1.44 - (-50.4)))/(2*2));
x1 = (1.2 + Math.sqrt(51.84)/(2*2));
x1 = (1.2 + 7.2)/(2*2);
x1 = (8.4)/(2*2);
x1 = (8.4)/(4);
x1 = 2.1;
_____________________________________________________
x2 = ((-b - Math.sqrt(b*b - 4*a*c))/(2*a));
x2 = ((-(-1.2) - Math.sqrt((-1.2)*(-1.2) - 4*2*(-6.3)))/(2*2));
x2 = (1.2 - Math.sqrt(1.44 - (-50.4)))/(2*2));
x2 = (1.2 - Math.sqrt(51.84)/(2*2));
x2 = (1.2 - 7.2)/(2*2);
x2 = (-6)/(2*2);
x2 = (-6)/(4);
x2 = -1.5;
_____________________________________________________
please correct me if I'm wrong