error in cubic function t_min >= t_max