Previous: , Up: Rational Interval Functions   [Index]


5.7 Interval Approximation of Elementary Functions

Teething Note: At the time of writing, this part of the library is clearly at a very early stage as it basically contains only one function: more functions may be furnished in the coming minor releases, the all set of elementary functions in the next major release.

Inline Function: void mpri_atan (mpri_t rop, const mpri_t op, mpri_prec_t prec)

Set rop to the best rational interval approximation of the arc-tangent of op, arctan(op), with a guaranteed precision of at least prec bits. This inline function straightforwardly wraps the function mpri_2exp_atan.

Function: void mpri_2exp_atan (mpri_t rop, unsigned long int exponent, const mpri_t op, mpri_prec_t prec)

Set rop to the best rational interval approximation of 2 raised to exponent times the arc-tangent of op, with a guaranteed precision of at least prec bits.