This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gsl_sf_coupling_3j


Filip Floegel writes:
 > hello gsl community,
 >  gsl_sf_coupling_3j doesn't work properly for large angular mementa
 > like j1=j2=j3=40 m1=m2=m3=0 !!!
 >  gsl_sf_coupling_3j_e(80,80,80,0,0,0,&result)
 >  which correspond to j1=j2=j3=40 m1=m2=m3=0
 >  gives me:
 >       result.val = 0.0625 result.err = 0.172766
 >  mathematica gives me:
 >       N[ThreeJSymbol[{40,0},{40,0},{40,0}]] = 0.0149685
 >  my guess is that gamma.c which is used for calculating fractional
 > numbers probably diverges for large integers.

Thanks for the bug report.

If you can take a look at the source maybe a different expansion can
be used for large values to improve the accuracy?

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]