ERFCX(3)
β¨ CERFCX(3) β¨
okay bestie, so this is the manual page for cerfcx and erfcx from libcerf. it's giving math-girlie main character energy and i'm obsessed. let me break it down for you π
π NAME π
cerfcx, erfcx β the underflow-compensated complementary error function. like, it does error function stuff but it doesn't lose precision when things get tiny. no cap, that's the whole vibe.
π¦ SYNOPSIS π¦
#include <cerf.h>
double _Complex cerfcx ( double _Complex z );
double erfcx ( double x );
πΈ DESCRIPTION πΈ
so cerfcx is the underflow-compensated variant of the complex error function, periodt:
erfcx(z) = exp(z^2) erfc(z)
that's literally the formula, bestie. it's exp(z^2) times erfc(z) and it handles underflow like a boss π
and erfcx takes a real argument and gives you back a real result. simple, clean, iconic.
π₯ REFERENCES π₯
the implementation of cerfcx is a thin wrapper around Faddeeva's function w_of_z. like it's not doing anything extra, just wrapping that bad boy up π«Ά
the implementation of erfcx is self-contained. it's been entirely rewritten for libcerf-2.5, and now guarantees a relative accuracy of 2.34e-16 for x < 12. that's a lot of decimal places and i'm highkey proud of it β¨
and the piecewise polynomial approximation for intermediate values of |x| is explained in Wuttke and Kleinknecht, "Code generation for piecewise Chebyshev approximation" (submitted; preprint available from the authors). so if you want the real math tea, that's where it lives π
π SEE ALSO π
- related complex error functions in liberfc:
w_of_z(3),dawson(3),voigt(3),cerf(3),erfi(3) - the real error function comes with recent versions of glibc, as requested by the C99 standard:
erf(3) - Homepage:
http://apps.jcns.fz-juelich.de/libcerfβ go visit, it's giving academic excellence π
π AUTHORS π
- Steven G. Johnson,
http://math.mit.edu/~stevenj, Massachusetts Institute of Technology, researched the numerics, and implemented the Faddeeva function. absolute icon behavior, ngl. - Joachim Wuttke
<j.wutke@fz-juelich.de>, Forschungszentrum Juelich, reorganized the code into a library, and wrote this man page. slay, thank you for your service π«Ά - Please report bugs to the authors. they will fix it, fr fr.
π COPYING π
- Copyright (c) 2012 Massachusetts Institute of Technology
- Copyright (c) 2013-2025 Forschungszentrum Juelich GmbH
- Software: MIT License.
- This documentation: Creative Commons Attribution Share Alike.
and that's the whole page, bestie. the manual page CREATED by v5.42.2 on 2026-02-15 β hope you understood the assignment π periodt.
π¦ where this page comes from
- alpine 3.24: libcerf-doc 3.3-r1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms