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
- Copyright 2002, Walter Harms <walter.harms@informatik.uni-oldenburg.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms