Files to compute some special functions (source codes in C/C++), free for download and with no warranty.

error_function.zip (5 kB)
The error function erf and its complementary erfc, the version which can be found in Sun's library (Cody's solution and thus
only for Reals), but ready to use. For its cousin - the cumulative normal distribution - see the main page (and the VBA code)
or use
cdfN(x) = ( 1 + erf(x/sqrt(2)) ) / 2, but be aware that this always will introduce some relative errors.

MillsRatio.zip (3 kB)
Mills' ratio (or the inverse of the hazard function) and defined as
(1 - cdfN(x))/pdfN(x)and thus also can by used to
compute the cumulative normal distribution. The absolute and relative errors are
~ 2 * DBL_EPSILON and the test report
regards the
IEEE representation for doubles, Mills_IEEE.pdf (459 kB).

LambertW.cpp (1 kB)
Lambert's W function solves the equation
x = y * exp(y) = y + y^2 + y^3/2 + y^4/6 + y^5/24 + ...
y = LambertW(x)
is a kind of log for that. Over the positive Reals it can be computed by Newton's method, which converges
quickly (~ 3 steps) with relative error below
2 * DBL_EPSILON (absolute error below DBL_EPSILON for x= 0 .. 1).

gamma_lanzos.zip (4 kB)
Gamma function for complex inputs, which also works very close the the poles in negative integers. Basically it uses Godfrey's
method (which however seems to have problems in those regions). The tests for accuracy are done with Maple (using high
precision and regarding IEEE representation for doubles), here are some test results: gamma_lanczos_NP_test.pdf (20 kB).

hypergeometric function 2F1 function (internal link)
For
Gauss' function, complex case for parameters and variable, has its own URL. Note it is the function, not merely the series
in the unit disk.

feedback is welcome & if you want to drop me any comment ...
{"ft_lang_label":"__label__en","ft_lang_prob":0.8430285,"math_prob":0.96196234,"size":2367,"snap":"2021-31-2021-39","text_gpt3_token_len":584,"char_repetition_ratio":0.09394837,"word_repetition_ratio":0.0,"special_character_ratio":0.243346,"punctuation_ratio":0.12107623,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98689616,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-27T17:01:59Z\",\"WARC-Record-ID\":\"<urn:uuid:0446b23f-8deb-4b9c-9537-b59966f2dadd>\",\"Content-Length\":\"7637\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5ddbf853-a4dc-418a-90c0-a4f75a2aa1c8>\",\"WARC-Concurrent-To\":\"<urn:uuid:778a1ea9-79d9-4c8a-9f52-b57c8a7a60f0>\",\"WARC-IP-Address\":\"217.160.0.173\",\"WARC-Target-URI\":\"http://axelvogt.de/axalom/SpecialFunctions/index.html\",\"WARC-Payload-Digest\":\"sha1:VM4RVFR6522HOOMWCBVPEWJTDT7NSXHU\",\"WARC-Block-Digest\":\"sha1:XGCBI6UKUJFQQNLON4RJ7R7KZQSRA3O4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780058456.86_warc_CC-MAIN-20210927151238-20210927181238-00602.warc.gz\"}"}