Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Using PDL::GSLSF::GAMMA

by syphilis (Chancellor)
on Aug 09, 2012 at 14:50 UTC ( #986537=note: print w/replies, xml ) Need Help??


in reply to Using PDL::GSLSF::GAMMA

I get the same (wrong) result as you.
Either there's a bug in the implementation, or there's a bug in the documentation. Either way, unless someone here comes up with a better idea, I'd report it to the pdl mailing list.

Another option would be to submit a bug report to the PDL bug tracker on Sourceforge ... if your browser is up to handling something as shitful as Sourceforge and you can find the PDL bug tracker. (Sorry, I don't even have a link.)

Math::GSL seems to get it right:
C:\>perl -MMath::GSL::SF -e "print Math::GSL::SF::gsl_sf_gamma(0.4)" 2.21815954375769 C:\>
I guess that means the error is in the PDL implementation.

UPDATE: Khen1950fx's approach seems to work ok. But where is this documented ?

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Using PDL::GSLSF::GAMMA
by Khen1950fx (Canon) on Aug 09, 2012 at 17:28 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986537]
help
Chatterbox?
[perldigious]: If you want a linguistic adventure...
[perldigious]: No offense to any Scotsman, I love Scots. Well actually, I love Scotch, but I'm sure the people are great too. :-P
[Discipulus]: perldigious i understand i word on ten, to be optimistic..
LanX will try to give his next LPW talk with a Cogney intonation
[Discipulus]: if you love Scotch in scotland your safety will be.. glengranted
[LanX]: *Cockney

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-06-23 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (552 votes). Check out past polls.