Finding the number roots of a quadratic function