note
syphilis
I get the same (wrong) result as you.<br>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 [http://lists.perl.org/list/pdl.html|pdl mailing list]. <br><br>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.)<br><br>Math::GSL seems to get it right:
<c>
C:\>perl -MMath::GSL::SF -e "print Math::GSL::SF::gsl_sf_gamma(0.4)"
2.21815954375769
C:\>
</c>
I guess that means the error is in the PDL implementation.<br><br><b>UPDATE: </b> [Khen1950fx]'s approach seems to work ok. But where is this documented ?
<br><br>Cheers,<br>Rob
986493
986493