FLINT3.7.0-dev

d1_sin, d2_sin, d3_sin, d4_sin, d1_cos, d2_cos, d3_cos, d4_cos, d1_sin_cos, d2_sin_cos, d3_sin_cos, d4_sin_cos

Synopsis#include <flint/dfloat.h>
void d1_sin(d1_t res, d1_srcptr x)
void d2_sin(d2_t res, d2_srcptr x)
void d3_sin(d3_t res, d3_srcptr x)
void d4_sin(d4_t res, d4_srcptr x)
void d1_cos(d1_t res, d1_srcptr x)
void d2_cos(d2_t res, d2_srcptr x)
void d3_cos(d3_t res, d3_srcptr x)
void d4_cos(d4_t res, d4_srcptr x)
void d1_sin_cos(d1_t sn, d1_t cs, d1_srcptr x)
void d2_sin_cos(d2_t sn, d2_t cs, d2_srcptr x)
void d3_sin_cos(d3_t sn, d3_t cs, d3_srcptr x)
void d4_sin_cos(d4_t sn, d4_t cs, d4_srcptr x)

The sine and cosine, with the bounds DFLOAT_TRIG_EPS_N. dN_sin_cos computes both from one argument reduction, at about 10% more than one of them, with results identical to those of dN_sin and dN_cos. Arguments beyond 2^{20}\pi/2 - 1 in absolute value are evaluated through arb_t with the same guarantee; nonfinite arguments give NaN.

Cite this page

The FLINT team, “d1_sin, d2_sin, d3_sin, d4_sin, d1_cos, d2_cos, d3_cos, d4_cos, d1_sin_cos, d2_sin_cos, d3_sin_cos, d4_sin_cos (dfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dfloat/d1_sin.html (generated 2026-10-20).