Function rgsl::exponential::exprel_2 [] [src]

pub fn exprel_2(x: f64) -> f64

This routine computes the quantity 2(\exp(x)-1-x)/x2 using an algorithm that is accurate for small x. For small x the algorithm is based on the expansion 2(\exp(x)-1-x)/x2 = 1 + x/3 + x2/(3*4) + x3/(3*4*5) + \dots.