Function halley

Source
pub fn halley<T: FloatLike, F, D, D2>(
    guess: T,
    f: F,
    f_prime: D,
    f_prime2: D2,
    tolerance: T,
    max_iter: u16,
) -> Result<T, FinPrimError<T>>
where F: Fn(T) -> T, D: Fn(T) -> T, D2: Fn(T) -> T,