These lines (561-567) of src/nmath/bessel_j.c seem relevant. :-)
L250:
/* ---------------------------------------------------
Normalize. Divide all b[N] by sum.
---------------------------------------------------*/
/* if (nu + 1. != 1.) poor test */
if(fabs(nu) > 1e-15)
sum *= (Rf_gamma_cody(nu) * pow(.5* *x, -nu));
Mikael
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.