$tol && $i < $iterations); if ($dif > $tol) { return NAN; } return $guess; } }