approx zeros of cubic function