Function: mpfr_function_d ('acos', R, X)
Function: mpfr_function_d ('acosh', R, X)
Function: mpfr_function_d ('asin', R, X)
Function: mpfr_function_d ('asinh', R, X)
Function: mpfr_function_d ('atan', R, X)
Function: mpfr_function_d ('atan2', R, Y, X)
Function: mpfr_function_d ('atanh', R, X)
Function: mpfr_function_d ('cbrt', R, X)
Function: mpfr_function_d ('cos', R, X)
Function: mpfr_function_d ('cosh', R, X)
Function: mpfr_function_d ('cot', R, X)
Function: mpfr_function_d ('coth', R, X)
Function: mpfr_function_d ('csc', R, X)
Function: mpfr_function_d ('csch', R, X)
Function: mpfr_function_d ('dilog', R, X)
Function: mpfr_function_d ('ei', R, X)
Function: mpfr_function_d ('erf', R, X)
Function: mpfr_function_d ('erfc', R, X)
Function: mpfr_function_d ('exp', R, X)
Function: mpfr_function_d ('expm1', R, X)
Function: mpfr_function_d ('factorial', R, N)
Function: mpfr_function_d ('fma', R, X, Y, Z)
Function: mpfr_function_d ('gamma', R, X)
Function: mpfr_function_d ('gammaln', R, X)
Function: mpfr_function_d ('hypot', R, X, Y)
Function: mpfr_function_d ('log', R, X)
Function: mpfr_function_d ('log2', R, X)
Function: mpfr_function_d ('log10', R, X)
Function: mpfr_function_d ('log1p', R, X)
Function: mpfr_function_d ('minus', R, X, Y)
Function: mpfr_function_d ('nthroot', R, X, N)
Function: mpfr_function_d ('plus', R, X, Y)
Function: mpfr_function_d ('pow', R, X, Y)
Function: mpfr_function_d ('pow2', R, X)
Function: mpfr_function_d ('pow10', R, X)
Function: mpfr_function_d ('psi', R, X)
Function: mpfr_function_d ('rdivide', R, X, Y)
Function: mpfr_function_d ('realsqrt', R, X)
Function: mpfr_function_d ('rem', R, X, Y)
Function: mpfr_function_d ('rsqrt', R, X)
Function: mpfr_function_d ('sec', R, X)
Function: mpfr_function_d ('sech', R, X)
Function: mpfr_function_d ('sin', R, X)
Function: mpfr_function_d ('sinh', R, X)
Function: mpfr_function_d ('sqr', R, X)
Function: mpfr_function_d ('tan', R, X)
Function: mpfr_function_d ('tanh', R, X)
Function: mpfr_function_d ('times', R, X, Y)

Evaluate a function in binary64 with correctly rounded result.

Parameter 1 is the function’s name in GNU Octave, Parameter 2 is the rounding direction (0: towards zero, 0.5: towards nearest and ties to even, +inf: towards positive infinity, -inf: towards negative infinity). Parameters 3 and (possibly) 4 and 5 are operands to the function.

Evaluated on arrays, the function will be applied element-wise. For binary functions broadcasting is performed where needed. For ternary functions no broadcasting is performed.

The result is guaranteed to be correctly rounded. That is, the function is evaluated with (virtually) infinite precision and the exact result is approximated with a binary64 number using the desired rounding direction.

mpfr_function_d ('plus', -inf, 1, eps / 2) == 1
 ⇒ 1
mpfr_function_d ('plus', +inf, 1, eps / 2) == 1 + eps
 ⇒ 1

See also: crlibm_function.

Package: interval