Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
scipy.special.jn(2,0) returns nan (Trac #215) #742
trac user JohnByrnes wrote on 2006-06-22
The problem lies in scipy/Lib/special/cephes/jn.c on line 85.
if( n == 2 )
In the jn(2,0) case, we end up dividing by zero. The recurrence relationship for higher orders doesn't seem to end up doing this.