_mp_real_series_rs_tan, _mp_real_series_rs_tan_ok
#include <flint/mp_real.h>void _mp_real_series_rs_tan(nn_ptr res, nn_srcptr x, slong n, flint_bitcnt_t r)sourceint _mp_real_series_rs_tan_ok(slong n, flint_bitcnt_t r)sourceSet to for , , within 3 ulps, for and beyond as long as _mp_real_series_rs_tan_ok returns nonzero. res may alias .
The coefficients of ( the tangent numbers) are not ratios of small integers, but the leading ones share small denominators: chunk holds the terms whose common denominator fits limbs (12 terms in one limb, then 5 to 7 more per limb on 64-bit machines), with integer numerators in static tables. One tapered rectangular splitting runs over the chunks, carrying times the partial sum; crossing into chunk costs one division by . The tail is the tapered Horner scheme of _mp_real_series_tapered.
The FLINT team, “_mp_real_series_rs_tan, _mp_real_series_rs_tan_ok (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_series_rs_tan.html (generated 2026-11-02).
@misc{flint-doc-mp-real-mp-real-series-rs-tan,
author = {{The FLINT team}},
title = {{\_mp\_real\_series\_rs\_tan, \_mp\_real\_series\_rs\_tan\_ok (mp\_real.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mp_real/_mp_real_series_rs_tan.html},
note = {Generated 2026-11-02}
}