ERFF(3P)

πŸ’– ERFF(3P) πŸ’–

okay bestie, so this is page ERFF(3P) from the POSIX Programmer's Manual β€” yes, that POSIX, the one that lives in section 3P of your man pages, and she is serving standards-body realness. come sit with me, we're gonna get through this together 🫢


✨ PROLOG ✨

okay so first things first, a lil heads up that the manpage gods want you to know, and I'm quoting the vibe here: this manual page is part of the POSIX Programmer's Manual.

the Linux implementation of this interface may differ β€” so like, please go consult the corresponding Linux manual page for details on Linux behavior, because Linux does its own thing sometimes πŸ’…

also possible: the interface may not be implemented on Linux at all. not every baddie makes it to every platform, you know? 😭


🌸 NAME 🌸

erff, erfl β€” error functions πŸŽ€

yes. that's the name. error functions. not "error" like something went wrong, like the math error function. very different vibe, very important distinction, do not panic πŸ’œ


⭐ SYNOPSIS ⭐

here's the literal incantation, copy it exactly bestie:

#include <math.h>

float erff(float x);
long double erfl(long double x);

so you include <math.h>, and then you've got two lil functions β€” one that takes and returns a float (erff), and one that takes and returns a long double (erfl). that's it. that's the whole signature. slay ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the entire description is literally: refer to erf(). that's it. that's the whole thing.

like, go read the erf() manpage, bestie, because erff and erfl are just the float and long double versions of that whole situation. no cap, that's all this page is giving you on behavior. iykyk πŸ’…


okay this part is long but we do not skip parts in this house, so here we go, word for word on the legal tea πŸ“

portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

and here's the part that actually matters: in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. so if we ever disagree, the original wins. periodt.

the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

also β€” and this is lowkey relatable β€” any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html . not me making typos during a glow-up 😭


🌈 quick vibe check: nothing here is dangerous, nothing here is deprecated, nothing here is undefined behavior. it's a math function. it's fine. you're fine. go drink some water. πŸ’–

and that's the whole page, bestie!! this one came to you from IEEE/The Open Group, dated 2017, and the page itself is ERFF(3P) β€” that's the footer energy, that's the sign-off, we love her, we thank her for her service πŸŽ€πŸ’…βœ¨ bye babes!! πŸ¦‹

πŸ“¦ where this page comes from