I Am trying to write a small program to solve the quadratic equation and i was wondering if anyone could help the numbers are A=1 B=4 and C=5 thanks for your help in advance and also does anyone know of a good free ware 68hc11 emulator i had THRsim11 but the trial is almost over thank you in advance

double r1, i1; // First solution

double r2, i2; // Second solution

{

double t;

c = c/a;

/* Complex solution */

r1 = -0.5*b;

i1 = sqrt(-t);

r2 = r1;

i2 = -i1;

}

else {

/* Real solution */

t = sqrt(t);

r1 = -0.5*b + t;

i1 = 0;

r2 = -0.5*b - t;

i2 = 0;

}

}