Function rgsl::exponential::exprel_2_e [] [src]

pub fn exprel_2_e(x: f64) -> (Value, Result)

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.