casin(3)

✨ casin β€” complex arc sine, but make it a vibe ✨

okay bestie, pull up a chair πŸŽ€ this is casin(3), like, the third section of the manual (yes that's what the (3) means, iykyk), and it's about the complex arc sine. three whole functions, all named almost the same, all serving absolute cunt. let's go πŸ’…


🌸 LIBRARY 🌸

Math library β€” that's libm, and you link it with -lm. (yes, lowercase L, not a one, not an I, we've all made that mistake and we've all cried about it 😭)


✨ SYNOPSIS ✨

#include <complex.h>

double complex casin(double complex z);
float complex casinf(float complex z);
long double complex casinl(long double complex z);

three flavors of the exact same thing, one for each size of float. it's giving matching friend group energy fr fr 🫢


πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• these functions compute the complex arc sine of z. that's the whole gig. main character energy, no notes.

if you're the kind of girl who likes it formal: if y = casin(z), then z = csin(y). see how they're doing the whole inverse thing? obsessed. πŸ”₯

and the real part of y gets chosen inside the interval [-pi/2,pi/2]. that's the constraint. the bounds are the bounds, periodt.

also, ngl, this identity is kinda iconic:

casin(z) = -i clog(iz + csqrt(1 - z * z))

memorize it or don't, but it's right there, bestie. πŸ’œ


πŸ¦‹ ATTRIBUTES πŸ¦‹

for an explanation of the terms used in this section, go peek at attributes(7). and yes, the original had a cute little table, and we're doing bullets now because tables are not the moment. same facts though, no cap:

  • Interface: casin(), casinf(), casinl()
  • Attribute: Thread safety
  • Value: MT-Safe

translation: she's safe to call from multiple threads at once. multitasking queen πŸ‘‘


🌈 STANDARDS 🌈

C11, POSIX.1-2008. she's standardized, she's official, she's that girl. ⭐


🧚 HISTORY 🧚

she showed up in glibc 2.1. and before that? C99, POSIX.1-2001. a legend with a long lineage honestly 🌸


πŸŽ€ SEE ALSO πŸŽ€

go read her friends, they're all stunning:


okay that's the whole page, you ate it, you understood it, go write some complex math πŸ’–

this was Linux man-pages 6.20, dated 2026-02-08 β€” mwah, love u, bye 🫢✨

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms