FLINT3.7.0-dev

_decfloat_unary_method, _decfloat_unary2_method, _decball_unary_fn, _decball_unary2_method, _deccfloat_unary_method, _deccball_unary_method, _decfloat_arb_args, _decball_arb_args, _decfloat_constant, _decball_constant

Synopsis#include <flint/decimal.h>
int _decfloat_unary_method(decfloat_t res, const decfloat_t x, int method, gr_ctx_t ctx)source
int _decfloat_unary2_method(decfloat_t res1, decfloat_t res2, const decfloat_t x, int method1, int method2, gr_ctx_t ctx)source
int _decball_unary_fn(decball_t res, const decball_t x, int method, gr_ctx_t ctx)source
int _decball_unary2_method(decball_t res1, decball_t res2, const decball_t x, int method, gr_ctx_t ctx)source
int _deccfloat_unary_method(deccfloat_t res, const deccfloat_t x, int method, gr_ctx_t ctx)source
int _deccball_unary_method(deccball_t res, const deccball_t x, int method, gr_ctx_t ctx)source
int _decfloat_arb_args(decfloat_ptr res, decfloat_srcptr x, decfloat_srcptr y, decfloat_srcptr z, decfloat_srcptr w, int flag, int spec, gr_ctx_t ctx)source
int _decball_arb_args(decball_ptr res, decball_srcptr x, decball_srcptr y, decball_srcptr z, decball_srcptr w, int flag, int spec, gr_ctx_t ctx)source
int _decfloat_constant(decfloat_t res, int method, gr_ctx_t ctx)source
int _decball_constant(decball_t res, int method, gr_ctx_t ctx)source

The drivers behind the special functions: the unary function given by the gr method method, correctly rounded (componentwise for complex numbers), respectively enclosed for balls; two functions at once (sin_cos, sinh_cosh); a single-result function of up to four arguments with spec = DECIMAL_ARGSPEC(method, nargs, has_flag); and constants.

Cite this page

The FLINT team, “_decfloat_unary_method, _decfloat_unary2_method, _decball_unary_fn, _decball_unary2_method, _deccfloat_unary_method, _deccball_unary_method, _decfloat_arb_args, _decball_arb_args, _decfloat_constant, _decball_constant (decimal.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/decimal/_decfloat_unary_method.html (generated 2026-10-20).