Gamma function: Difference between revisions
Content deleted Content added
m →{{header|J}}: fix links and tags |
|||
Line 579:
This code shows the built-in method, which works for any value (positive, negative and complex numbers).
<lang
The following direct coding of the task comes from
<lang
scorr =: 1 1r12 1r288 _139r51840 _571r2488320&p.@%
stirlg=: sbase * scorr</lang>
Checking against <code>!@<:</code> we can see that this approximation loses accuracy for small arguments
<lang j> (,. stirlg ,.
=={{header|Mathematica}}==
|