help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Wolfram EllipticK vs gsl_sf_ellint_Kcomp


From: Will M Farr
Subject: Re: [Help-gsl] Wolfram EllipticK vs gsl_sf_ellint_Kcomp
Date: Mon, 26 Jul 2010 13:30:43 -0500

Ruben,

Have you checked the docs carefully?  I recall a difference of definition (k vs 
k^2 in the integral) between Mathematica and GSL when I looked into this a few 
weeks ago....

Will

On Jul 26, 2010, at 1:24 PM, Ruben Van Boxem wrote:

> Hi,
> 
> Since recently I have been using GSL for the odd mathematical functions that
> appear in my calculations.
> 
> I am using the library, compiled with and for mingw-w64
> (x86_64-w64-mingw32), and BesselK functions work nicely.
> 
> Today I needed Wolfram's
> EllipticK<http://www.wolframalpha.com/input/?i=EllipticK%28.1%29>,
> but GSL outputs the wrong value.
> 
> I'm comparing GSL's
> 
>> gsl_sf_ellint_Kcomp
>> 
> with Wolfram's 
> EllipticK<http://www.wolframalpha.com/input/?i=EllipticK%28.1%29>
> 
> GSL: 1.6564411200033
> Wolfram: 1.6124413487
> 
> GCC version is 4.4.5 (prerelease).
> 
> I am currently building GSL for the i686-w64-mingw32 target, and wonder if
> I'll get the same result.
> 
> Of course it's possible that I used the wrong GSL function, but the
> documentation seems to match Wolfram's definition of EllipticK.
> 
> Thanks for any help!
> _______________________________________________
> Help-gsl mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gsl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]