﻿function [r1, r2] = DannyQuadraticRoots(a,b,c)
  discriminant=sqrt(b*b - 4*a*c);
  if (b >= 0)
    r1 = (-b - discriminant)./(2*a);
    r2 = (2*c)./(-b - discriminant);
  else
    r1 = (-b + discriminant)./(2*a);
    r2 = (2*c)./(-b + discriminant);
  end
end