% Script Quad1
% Solves x^2 + 5x + 6 = 0

a = 1;
b = 5;
c = 6;
d = sqrt(b^2 - 4*a*c);
r1 = (-b - d)/(2*a)
r2 = (-b + d)/(2*a)