CATAN(3POSIX)
π CATAN β the complex arc tangent situation π
okay bestie, so this one lives in the POSIX Programmer's Manual, and it's the 3POSIX page for catan, catanf, and catanl. Come sit with me, it's actually not that deep. π«Ά
β¨ PROLOG β¨
Real talk first: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ β so if you're on Linux, go consult the corresponding Linux manual page for the deets on Linux behavior. Or, plot twist, the interface might just not be implemented on Linux at all. Not me warning you before you even start π
πΈ NAME πΈ
catan, catanf, catanl β the complex arc tangent functions. Three of them. Sisters. A whole trio. π
π SYNOPSIS π
#include <complex.h>
double complex catan(double complex z);
float complex catanf(float complex z);
long double complex catanl(long double complex z);
Look at them, all lined up, so organized, so iconic. β¨
π DESCRIPTION π
The functionality described on this reference page is aligned with the ISO C standard. And if there's any conflict between the requirements described here and the ISO C standard? That's unintentional, bestie. This volume of POSIX.1β2017 defers to the ISO C standard. It's giving "the ISO C standard is the referee and we respect her." π
So here's the actual tea: these functions shall compute the complex arc tangent of z, with branch cuts outside the interval [-i, +i] along the imaginary axis. That's the whole vibe. Outside [-i, +i], imaginary axis, branch cuts. Write it down. π¦
π₯ RETURN VALUE π₯
These functions shall return the complex arc tangent value, and it lands in the range of a strip mathematically unbounded along the imaginary axis and in the interval [-Ο/2, +Ο/2] along the real axis. So: imaginary axis = no limits, she's free π. Real axis = [-Ο/2, +Ο/2], she's contained, she's got boundaries, she's healthy. Periodt.
π ERRORS π
No errors are defined. Literally none. This function has never done anything wrong in its life, not once. π
Also, heads up: the following sections are informative. So they're the chill, non-mandatory part of the page. πΈ
π EXAMPLES π
None. Nothing. Empty. The void. We love a low-effort section πβ¨
π§ APPLICATION USAGE π§
None. Also nothing! Two for two! π
π RATIONALE π
None. The reasoning? There is no reasoning. She simply exists. Main character energy, no explanation needed. π
β FUTURE DIRECTIONS β
None. The future is empty. We're living in the present. Slay. π¦
π SEE ALSO π
ctan()- The Base Definitions volume of
POSIX.1β2017,<complex.h>
iykyk, go read those too, they're the supporting cast. π«Ά
π COPYRIGHT π
Okay here's the legal part, and I'm keeping every word because bestie, I am not about to get us in trouble:
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. 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. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
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 .
ngl, the "referee document" line is doing numbers. The original always wins. Always. π
And that's the whole page, bestie! It came from IEEE/The Open Group, dated 2017, and it's the CATAN(3POSIX) page. Go forth and compute your complex arc tangents responsibly. Mwah. πβ¨π
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms