_mp_real_sinh_cosh_fp, _mp_real_tanh_fp
Synopsis
#include <flint/mp_real.h>slong _mp_real_sinh_cosh_fp(nn_ptr ys, nn_ptr yc, slong * w, ulong * err, nn_srcptr d, slong n, slong e, slong pb)sourcevoid _mp_real_tanh_fp(nn_ptr q, slong * w, ulong * err, nn_srcptr d, slong n, slong e, slong pb)sourceThe hyperbolic functions of , MP_REAL_EXP_FP_MAX_EXP, not tiny: from and one approximate reciprocal, at limbs for and _mp_real_elem_limbs(pb + 1 - e) for (the cancellation in ). _mp_real_sinh_cosh_fp sets and (either NULL; w + 2 limbs each) with and within err units, returning ( for ); _mp_real_tanh_fp sets within err units (q needs w + 2 limbs). err is at most twice that of the exponential plus a few units; for so large that is below a unit, the result is within a unit without any evaluation.
Cite this page
The FLINT team, “_mp_real_sinh_cosh_fp, _mp_real_tanh_fp (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_sinh_cosh_fp.html (generated 2026-11-17).
@misc{flint-doc-mp-real-mp-real-sinh-cosh-fp,
author = {{The FLINT team}},
title = {{\_mp\_real\_sinh\_cosh\_fp, \_mp\_real\_tanh\_fp (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_sinh_cosh_fp.html},
note = {Generated 2026-11-17}
}