CCOS(3POSIX)

πŸ’– CCOS(3POSIX) β€” the POSIX Programmer's Manual, bestie edition πŸ’–

okay so before we even get into it: this is a page from the POSIX Programmer's Manual, and I need you to know something real quick. ✨

🌸 PROLOG 🌸

Heads up, bestie, this is important:

  • This manual page is part of the POSIX Programmer's Manual.
  • The Linux implementation of this interface may differ β€” so go check the corresponding Linux manual page for the actual Linux tea. πŸ«–
  • Or, plot twist, the interface may not be implemented on Linux at all. 😭

πŸ‘‘ NAME πŸ‘‘

ccos, ccosf, ccosl β€” complex cosine functions. that's the whole vibe. trigonometry but make it complex πŸ’…


✨ SYNOPSIS ✨

#include <complex.h>

double complex ccos(double complex z);
float complex ccosf(float complex z);
long double complex ccosl(long double complex z);

three sisters, three precisions, one job. slay. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so first, the legal-ish bit, but I'm gonna say it with love: the functionality described on this reference page is aligned with the ISO C standard. Any conflict between the requirements described here and the ISO C standard is unintentional. This volume of POSIX.1‐2017 defers to the ISO C standard. periodt. πŸ‘‘

And now the actual thing you came here for: these functions shall compute the complex cosine of z. that's it. that's the whole function. no cap. πŸ’–


πŸ”₯ RETURN VALUE πŸ”₯

These functions shall return the complex cosine value. giving exactly what it says on the tin, and honestly? iconic. ⭐


πŸ’€ ERRORS πŸ’€

No errors are defined.

and then, the quietest sentence in the whole page:

The following sections are informative.

which is manpage-speak for "the rest of this is lore, not law." iykyk. πŸ™ˆ


πŸ“ EXAMPLES πŸ“

None.

bestie they really said "figure it out" 😭


🌈 APPLICATION USAGE 🌈

None.

same energy. moving on. 🧚


πŸ’œ RATIONALE πŸ’œ

None.

the reasoning? not documented. the vibes? immaculate. πŸ’…


πŸŽ€ FUTURE DIRECTIONS πŸŽ€

None.

no plans, no plot, just vibes. πŸ¦‹


πŸ‘‘ SEE ALSO πŸ‘‘

  • cacos()

Also, from the Base Definitions volume of POSIX.1‐2017: <complex.h>

like, obviously check the header, that's where the family lives. 🫢


okay so here's the serious part, and I'm keeping every word because it matters:

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 .


fr fr, that's the whole page. go compute your complex cosines, bestie. 🫢

IEEE/The Open Group ran this in 2017, and honestly? thank you for your service. πŸŽ€ mwah. πŸ’–βœ¨