Function rgsl::exponential::exprel [] [src]

pub fn exprel(x: f64) -> f64

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