double gsl_sf_exprel_n(const int n, const double x) { EVAL_RESULT(gsl_sf_exprel_n_e(n, x, &result)); }
/** * C++ version of gsl_sf_exprel_n_e(). * Similarly for the N-th generalization of * exprel_2. The so-called N-relative exponential * * exprel_N(x) = N!/x^N (exp(x) - Sum[x^k/k!, {k,0,N-1}]) * = 1 + x/(N+1) + x^2/((N+1)(N+2)) + ... * = 1F1(1,1+N,x) * @param n A real number * @param x A real number * @param result The result as a @c gsl::sf::result object * @return Error code on failure */ inline int exprel_n_e( int const n, double const x, result& result ){ return gsl_sf_exprel_n_e( n, x, &result ); }