ensured that no negative grade for a polynom is not input.