_mp_real_neglog_newton, _mp_real_neglog_newton_tune, _mp_real_atan_newton, _mp_real_atan_newton_tune
#include <flint/mp_real.h>void _mp_real_neglog_newton_tune(nn_ptr y, ulong * err, nn_srcptr x, slong n, int forward, slong N)sourcevoid _mp_real_atan_newton_tune(nn_ptr y, ulong * err, nn_srcptr x, slong n, int forward, slong N)sourceSet to for in , respectively to for in , by one Newton–Taylor step over the forward function: with , resp. with , from a starting value correct to a fraction of the precision. err is computed at run time and at most 2.
The forward functions are the diophantine exponential and sine and cosine at limbs. The _tune versions take the forward algorithm (0 diophantine, 1 bitwise, 2 table-free) and the number of terms of the series in (up to 16, 0 for the default); the starting value is computed at about resp. of the precision, by the bitwise kernels up to 512 limbs and recursively above. The whole costs one forward evaluation plus about a tenth of one. These are the kernels of mp_real_log_bits and mp_real_atan_bits above 600 limbs.
The FLINT team, “_mp_real_neglog_newton, _mp_real_neglog_newton_tune, _mp_real_atan_newton, _mp_real_atan_newton_tune (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_neglog_newton.html (generated 2026-11-02).
@misc{flint-doc-mp-real-mp-real-neglog-newton,
author = {{The FLINT team}},
title = {{\_mp\_real\_neglog\_newton, \_mp\_real\_neglog\_newton\_tune, \_mp\_real\_atan\_newton, \_mp\_real\_atan\_newton\_tune (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_neglog_newton.html},
note = {Generated 2026-11-02}
}