csin(3)

✨ csin(3) β€” the complex sine bestie era ✨

okay so this is csin(3), from the Library Functions Manual πŸ’–. It's the page for csin, csinf and csinl β€” aka the complex sine function, but in three delicious flavors. πŸ“


🌈 LIBRARY

Math library, babes: link it with -lm. πŸ“š

πŸŽ€ SYNOPSIS

#include <complex.h>

double complex csin(double complex z);
float complex csinf(float complex z);
long double complex csinl(long double complex z);

so yeah, three functions, three precisions: double complex, float complex, long double complex. pick your fighter πŸ’…

πŸ‘‘ DESCRIPTION

These functions calculate the complex sine of z. That's it, that's the job. πŸ¦‹

The complex sine function is defined as:

csin(z) = (exp(i * z) - exp(-i * z)) / (2 * i)

like, that's the whole formula, no cap. it's giving Euler's formula energy and honestly? iconic. ✨

πŸ’œ ATTRIBUTES

For an explanation of the terms used in this section, see attributes(7). πŸ‘€

  • csin(), csinf(), csinl() β€” Thread safety: MT-Safe 🫢

so yes bestie, they're thread safe, you can go off with your threads. πŸ”₯

🌸 STANDARDS

C11, POSIX.1-2008. certified and standardized, periodt. ⭐

🧚 HISTORY

Appeared in glibc 2.1. Before that, it was hanging out in C99 and POSIX.1-2001. it's been serving since forever, lowkey a legend. πŸ’€βœ¨

🌈 SEE ALSO


mwah πŸ’‹ that's the whole page. this one comes from Linux man-pages 6.20, dated 2026-02-08, and it lives at csin(3). go forth and sine, queen πŸ‘‘πŸ’…πŸŒΈ

πŸ“¦ 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