sum and product of roots of cubic equation