Click or drag to resize
mpfr_lib Class
Represents all of the functions of the GNU MPFR library.
Inheritance Hierarchy
SystemObject
  Math.Mpfr.Nativempfr_lib

Namespace:  Math.Mpfr.Native
Assembly:  Math.Mpfr.Native (in Math.Mpfr.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static class mpfr_lib

The mpfr_lib type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode examplempfr_abs
Set rop to the absolute value of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_acos
Set rop to the arc-cosine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_acosh
Set rop to the inverse hyperbolic cosine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_add
Set rop to op1 + op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_add_d
Set rop to op1 + op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_add_q
Set rop to op1 + op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_add_si
Set rop to op1 + op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_add_ui
Set rop to op1 + op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_add_z
Set rop to op1 + op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_agm
Set rop to the arithmetic-geometric mean of op1 and op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_ai
Set rop to the value of the Airy function Ai on x rounded in the direction rnd.
Public methodStatic memberCode examplempfr_asin
Set rop to the arc-sine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_asinh
Set rop to the inverse hyperbolic sine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_asprintf
Write output as a null terminated string in a block of memory allocated using the allocation function (see GNU MPFR - Memory Handling).
Public methodStatic memberCode examplempfr_atan
Set rop to the arc-tangent of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_atan2
Set rop to the arc-tangent2 of y and x rounded in the direction rnd.
Public methodStatic memberCode examplempfr_atanh
Set rop to the inverse hyperbolic tangent of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_beta
Set rop to the value of the Beta function at arguments op1 and op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_buildopt_decimal_p
Return a non-zero value if MPFR was compiled with decimal float support, return zero otherwise.
Public methodStatic memberCode examplempfr_buildopt_float128_p
Return a non-zero value if MPFR was compiled with ‘__float128’ support, return zero otherwise.
Public methodStatic memberCode examplempfr_buildopt_gmpinternals_p
Return a non-zero value if MPFR was compiled with GMP internals, return zero otherwise.
Public methodStatic memberCode examplempfr_buildopt_sharedcache_p
Return a non-zero value if MPFR was compiled so that all threads share the same cache for one MPFR constant, return zero otherwise.
Public methodStatic memberCode examplempfr_buildopt_tls_p
Return a non-zero value if MPFR was compiled as thread safe using compiler-level Thread Local Storage, return zero otherwise.
Public methodStatic memberCode examplempfr_buildopt_tune_case
Return a string saying which thresholds file has been used at compile time.
Public methodStatic memberCode examplempfr_can_round
Return non-zero value if one is able to round correctly x to precision prec with the direction rnd2, and 0 otherwise.
Public methodStatic memberCode examplempfr_cbrt
Set rop to the cubic root of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_ceil
Set rop to op rounded to the next higher or equal representable integer (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDU).
Public methodStatic memberCode examplempfr_check_range
Check that x is within the current range of acceptable values.
Public methodStatic memberCode examplempfr_clear
Free the space occupied by the significand of x.
Public methodStatic memberCode examplempfr_clear_divby0
Clear (lower) the divide-by-zero flag.
Public methodStatic memberCode examplempfr_clear_erangeflag
Clear (lower) the erange flag.
Public methodStatic memberCode examplempfr_clear_flags
Clear (lower) all global flags (underflow, overflow, divide-by-zero, invalid, inexact, erange).
Public methodStatic memberCode examplempfr_clear_inexflag
Clear (lower) the inexact flag.
Public methodStatic memberCode examplempfr_clear_nanflag
Clear (lower) the invalid flag.
Public methodStatic memberCode examplempfr_clear_overflow
Clear (lower) the overflow flag.
Public methodStatic memberCode examplempfr_clear_underflow
Clear (lower) the underflow flag.
Public methodStatic memberCode examplempfr_clears
Free the space occupied by all the mpfr_t variables of the given list x.
Public methodStatic memberCode examplempfr_cmp
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmp_d
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmp_f
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmp_q
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmp_si
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmp_si_2exp
Compare op1 and op2 * 2^e.
Public methodStatic memberCode examplempfr_cmp_ui
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmp_ui_2exp
Compare op1 and op2 * 2^e.
Public methodStatic memberCode examplempfr_cmp_z
Compare op1 and op2.
Public methodStatic memberCode examplempfr_cmpabs
Compare |op1| and |op2|.
Public methodStatic memberCode examplempfr_const_catalan
Set rop to the value of Catalan’s constant 0.915… rounded in the direction rnd.
Public methodStatic memberCode examplempfr_const_euler
Set rop to the value of Euler’s constant 0.577… rounded in the direction rnd.
Public methodStatic memberCode examplempfr_const_log2
Set rop to the logarithm of 2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_const_pi
Set rop to the value of Pi rounded in the direction rnd.
Public methodStatic memberCode examplempfr_copysign
Set the value of rop from op1, rounded toward the given direction rnd, then set its sign bit to that of op2 (even when op1 or op2 is a NaN).
Public methodStatic memberCode examplempfr_cos
Set rop to the cosine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_cosh
Set rop to the hyperbolic cosine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_cot
Set rop to the cotangent of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_coth
Set rop to the hyperbolic cotangent of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_csc
Set rop to the cosecant of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_csch
Set rop to the hyperbolic cosecant of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_custom_clear
Free the space occupied by x.
Public methodStatic memberCode examplempfr_custom_get_exp
Return the exponent of x.
Public methodStatic memberCode examplempfr_custom_get_kind
Return the current kind of a mpfr_t as created by mpfr_custom_init_set.
Public methodStatic memberCode examplempfr_custom_get_significand
Return a pointer to the significand used by a mpfr_t initialized with mpfr_custom_init_set.
Public methodStatic memberCode examplempfr_custom_get_size
Return the needed size in bytes to store the significand of a floating-point number of precision prec.
Public methodStatic memberCode examplempfr_custom_init
Initialize a significand of precision prec.
Public methodStatic memberCode examplempfr_custom_init_set
Perform a dummy initialization of a mpfr_t.
Public methodStatic memberCode examplempfr_custom_move
Inform MPFR that the significand of x has moved due to a garbage collect and update its new position to new_position.
Public methodStatic memberCode examplempfr_d_div
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_d_sub
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_digamma
Set rop to the value of the Digamma (sometimes also called Psi) function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_dim
Set rop to the positive difference of op1 and op2, i.e., op1 - op2 rounded in the direction rnd if op1 > op2, +0 if op1op2, and NaN if op1 or op2 is NaN.
Public methodStatic memberCode examplempfr_div
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_2exp
This function is identical to mpfr_div_2ui.
Public methodStatic memberCode examplempfr_div_2si
Set rop to op1 divided by 2^op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_2ui
Set rop to op1 divided by 2^op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_d
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_q
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_si
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_ui
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_div_z
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_divby0_p
Return the divide-by-zero flag, which is non-zero iff the flag is set.
Public methodStatic memberCode examplempfr_eint
Set rop to the exponential integral of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_eq
Return non-zero if op1 and op2 are both non-zero ordinary numbers with the same exponent and the same first op3 bits.
Public methodStatic memberCode examplempfr_equal_p
Return non-zero if op1 = op2, and zero otherwise.
Public methodStatic memberCode examplempfr_erandom
Generate one random float according to an exponential distribution, with mean one.
Public methodStatic memberCode examplempfr_erangeflag_p
Return the erange flag, which is non-zero iff the flag is set.
Public methodStatic memberCode examplempfr_erf
Set rop to the value of the error function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_erfc
Set rop to the value of the complementary error function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_exp
Set rop to the exponential of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_exp10
Set rop to 10^op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_exp2
Set rop to 2^op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_expm1
Set rop to the e^op - 1, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_fac_ui
Set rop to the factorial of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_fits_intmax_p
Return non-zero if op would fit in the C data type (32-bit) long when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_sint_p
Return non-zero if op would fit in the C data type (32-bit) int when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_slong_p
Return non-zero if op would fit in the C data type (32-bit) long when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_sshort_p
Return non-zero if op would fit in the C data type (16-bit) short when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_uint_p
Return non-zero if op would fit in the C data type (32-bit) unsigned int when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_uintmax_p
Return non-zero if op would fit in the C data type (32-bit) unsigned long when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_ulong_p
Return non-zero if op would fit in the C data type (32-bit) unsigned long when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_fits_ushort_p
Return non-zero if op would fit in the C data type (16-bit) unsigned short when rounded to an integer in the direction rnd.
Public methodStatic memberCode examplempfr_flags_clear
Clear (lower) the group of flags specified by mask.
Public methodStatic memberCode examplempfr_flags_restore
Restore the flags specified by mask to their state represented in flags.
Public methodStatic memberCode examplempfr_flags_save
Return all the flags.
Public methodStatic memberCode examplempfr_flags_set
Set (raise) the group of flags specified by mask.
Public methodStatic memberCode examplempfr_flags_test
Return the flags specified by mask.
Public methodStatic memberCode examplempfr_floor
Set rop to op rounded to the next lower or equal representable integer.
Public methodStatic memberCode examplempfr_fma
Set rop to (op1 * op2) + op3 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_fmma
Set rop to (op1 * op2) + (op3 * op4) rounded in the direction rnd.
Public methodStatic memberCode examplempfr_fmms
Set rop to (op1 * op2) - (op3 * op4) rounded in the direction rnd.
Public methodStatic memberCode examplempfr_fmod
Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded toward zero.
Public methodStatic memberCode examplempfr_fmodquo(mpfr_t, ptrInt32, mpfr_t, mpfr_t, mpfr_rnd_t)
Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded toward zero.
Public methodStatic memberCode examplempfr_fmodquo(mpfr_t, Int32, mpfr_t, mpfr_t, mpfr_rnd_t)
Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded toward zero.
Public methodStatic memberCode examplempfr_fms
Set rop to (op1 * op2) - op3 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_fpif_export
Export the number op to the stream stream in a floating-point interchange format.
Public methodStatic memberCode examplempfr_fpif_import
Public methodStatic memberCode examplempfr_fprintf
Print to the stream stream the optional arguments under the control of the template string template.
Public methodStatic memberCode examplempfr_frac
Set rop to the fractional part of op, having the same sign as op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_free_cache
Free all caches and pools used by MPFR internally.
Public methodStatic memberCode examplempfr_free_cache2
Free various caches and pools used by MPFR internally, as specified by way, which is a set of flags
Public methodStatic memberCode examplempfr_free_pool
Free the pools used by MPFR internally.
Public methodStatic memberCode examplempfr_free_str
Free a string allocated by O:Math.Mpfr.Native.mpfr_lib.mpfr_get_str using the unallocation function (see GNU MPFR - Memory Handling).
Public methodStatic memberCode examplempfr_frexp(mpfr_exp_t, mpfr_t, mpfr_t, mpfr_rnd_t)
Set exp and y such that 0.5 ≤ abs(y) < 1 and y * 2^exp = x rounded to the precision of y, using the given rounding mode.
Public methodStatic memberCode examplempfr_frexp(ptrmpfr_exp_t, mpfr_t, mpfr_t, mpfr_rnd_t)
Set exp and y such that 0.5 ≤ abs(y) < 1 and y * 2^exp = x rounded to the precision of y, using the given rounding mode.
Public methodStatic memberCode examplempfr_gamma
Set rop to the value of the Gamma function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_gamma_inc
Set rop to the value of the incomplete Gamma function on op and op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_get_d
Convert op to a double, using the rounding mode rnd.
Public methodStatic memberCode examplempfr_get_d_2exp(Int32, mpfr_t, mpfr_rnd_t)
Return d and set exp such that 0.5 ≤ abs(d) <1 and d * 2^exp = op rounded to double precision, using the given rounding mode.
Public methodStatic memberCode examplempfr_get_d_2exp(ptrInt32, mpfr_t, mpfr_rnd_t)
Return d and set exp such that 0.5 ≤ abs(d) <1 and d * 2^exp = op rounded to double precision, using the given rounding mode.
Public methodStatic memberCode examplempfr_get_default_prec
Return the current default MPFR precision in bits.
Public methodStatic memberCode examplempfr_get_default_rounding_mode
Get the default rounding mode.
Public methodStatic memberCode examplempfr_get_emax
Return the (current) largest exponent allowed for a floating-point variable.
Public methodStatic memberCode examplempfr_get_emax_max
Return the maximum exponent allowed for mpfr_set_emax.
Public methodStatic memberCode examplempfr_get_emax_min
Return the minimum exponent allowed for mpfr_set_emax.
Public methodStatic memberCode examplempfr_get_emin
Return the (current) smallest exponent allowed for a floating-point variable.
Public methodStatic memberCode examplempfr_get_emin_max
Return the maximum exponent allowed for mpfr_set_emin.
Public methodStatic memberCode examplempfr_get_emin_min
Return the minimum exponent allowed for mpfr_set_emin.
Public methodStatic memberCode examplempfr_get_exp
Return the exponent of x, assuming that x is a non-zero ordinary number and the significand is considered in [1/2,1).
Public methodStatic memberCode examplempfr_get_f
Convert op to a mpf_t, after rounding it with respect to rnd.
Public methodStatic memberCode examplempfr_get_flt
Convert op to a float, using the rounding mode rnd.
Public methodStatic memberCode examplempfr_get_patches
Return a null-terminated string containing the ids of the patches applied to the MPFR library (contents of the PATCHES file), separated by spaces.
Public methodStatic memberCode examplempfr_get_prec
Return the precision of x, i.e., the number of bits used to store its significand.
Public methodStatic memberCode examplempfr_get_q
Convert op to a mpq_t.
Public methodStatic memberCode examplempfr_get_si
Convert op to a long after rounding it with respect to rnd.
Public methodStatic memberCode examplempfr_get_sj
Convert op to an intmax_t after rounding it with respect to rnd.
Public methodStatic memberCode examplempfr_get_str(char_ptr, ptrmpfr_exp_t, Int32, size_t, mpfr_t, mpfr_rnd_t)
Convert op to a string of digits in base b, with rounding in the direction rnd, where n is either zero (see below) or the number of significant digits output in the string; in the latter case, n must be greater or equal to 2.
Public methodStatic memberCode examplempfr_get_str(char_ptr, mpfr_exp_t, Int32, size_t, mpfr_t, mpfr_rnd_t)
Convert op to a string of digits in base b, with rounding in the direction rnd, where n is either zero (see below) or the number of significant digits output in the string; in the latter case, n must be greater or equal to 2.
Public methodStatic memberCode examplempfr_get_ui
Convert op to an unsigned long after rounding it with respect to rnd.
Public methodStatic memberCode examplempfr_get_uj
Convert op to an uintmax_t after rounding it with respect to rnd.
Public methodStatic memberCode examplempfr_get_version
Return the MPFR version, as a null-terminated string.
Public methodStatic memberCode examplempfr_get_z
Convert op to a mpz_t, after rounding it with respect to rnd.
Public methodStatic memberCode examplempfr_get_z_2exp
Put the scaled significand of op (regarded as an integer, with the precision of op) into rop, and return the exponent exp (which may be outside the current exponent range) such that op = rop * 2^exp.
Public methodStatic memberCode examplempfr_grandom
Generate two random floats according to a standard normal gaussian distribution (with mean zero and variance one).
Public methodStatic memberCode examplempfr_greater_p
Return non-zero if op1 > op2, and zero otherwise.
Public methodStatic memberCode examplempfr_greaterequal_p
Return non-zero if op1op2, and zero otherwise.
Public methodStatic memberCode examplempfr_hypot
Set rop to the Euclidean norm of x and y, i.e., the square root of the sum of the squares of x and y rounded in the direction rnd.
Public methodStatic memberCode examplempfr_inexflag_p
Return the inexact flag, which is non-zero iff the flag is set.
Public methodStatic memberCode examplempfr_inf_p
Return non-zero if op is an infinity. Return zero otherwise.
Public methodStatic memberCode examplempfr_init
Initialize x, set its precision to the default precision, and set its value to NaN.
Public methodStatic memberCode examplempfr_init_set
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_d
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_f
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_q
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_si
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_str
Initialize x and set its value from the string s in base base, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_ui
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init_set_z
Initialize rop and set its value from op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_init2
Initialize x, set its precision to be exactly prec bits and its value to NaN.
Public methodStatic memberCode examplempfr_inits
Initialize all the mpfr_t variables of the given list x, set their precision to the default precision and their value to NaN.
Public methodStatic memberCode examplempfr_inits2
Initialize all the mpfr_t variables of the given variable argument x, set their precision to be exactly prec bits and their value to NaN.
Public methodStatic memberCode examplempfr_inp_str
Input a string in base base from stream stream, rounded in the direction rnd, and put the read float in rop.
Public methodStatic memberCode examplempfr_integer_p
Return non-zero iff op is an integer.
Public methodStatic memberCode examplempfr_j0
Set rop to the value of the first kind Bessel function of order 0 on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_j1
Set rop to the value of the first kind Bessel function of order 1 on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_jn
Set rop to the value of the first kind Bessel function of order n on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_less_p
Return non-zero if op1 < op2, and zero otherwise.
Public methodStatic memberCode examplempfr_lessequal_p
Return non-zero if op1op2, and zero otherwise.
Public methodStatic memberCode examplempfr_lessgreater_p
Return non-zero if op1 < op2 or op1 > op2 (i.e., neither op1, nor op2 is NaN, and op1op2), zero otherwise (i.e., op1 and/or op2 is NaN, or op1 = op2).
Public methodStatic memberCode examplempfr_lgamma(mpfr_t, ptrInt32, mpfr_t, mpfr_rnd_t)
Set rop to the value of the logarithm of the absolute value of the Gamma function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_lgamma(mpfr_t, Int32, mpfr_t, mpfr_rnd_t)
Set rop to the value of the logarithm of the absolute value of the Gamma function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_li2
Set rop to real part of the dilogarithm of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_lngamma
Set rop to the value of the logarithm of the Gamma function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_log
Set rop to the natural logarithm of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_log_ui
Set rop to the natural logarithm of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_log10
Set rop to log10(op) rounded in the direction rnd.
Public methodStatic memberCode examplempfr_log1p
Set rop to the logarithm of one plus op, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_log2
Set rop to log2(op) rounded in the direction rnd.
Public methodStatic memberCode examplempfr_max
Set rop to the maximum of op1 and op2.
Public methodStatic memberCode examplempfr_min
Set rop to the minimum of op1 and op2.
Public methodStatic memberCode examplempfr_min_prec
Return the minimal number of bits required to store the significand of x, and 0 for special values, including 0.
Public methodStatic memberCode examplempfr_modf
Set simultaneously iop to the integral part of op and fop to the fractional part of op, rounded in the direction rnd with the corresponding precision of iop and fop.
Public methodStatic memberCode examplempfr_mp_memory_cleanup
Public methodStatic memberCode examplempfr_mul
Set rop to op1 * op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_2exp
This function is identical to mpfr_mul_2ui.
Public methodStatic memberCode examplempfr_mul_2si
Set rop to op1 * 2^op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_2ui
Set rop to op1 * 2^op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_d
Set rop to op1 * op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_q
Set rop to op1 * op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_si
Set rop to op1 * op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_ui
Set rop to op1 * op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_mul_z
Set rop to op1 * op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_nan_p
Return non-zero if op is NaN. Return zero otherwise.
Public methodStatic memberCode examplempfr_nanflag_p
Return the invalid flag, which is non-zero iff the flag is set.
Public methodStatic memberCode examplempfr_neg
Set rop to -op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_nextabove
Equivalent to mpfr_nexttoward where y is plus infinity.
Public methodStatic memberCode examplempfr_nextbelow
Equivalent to mpfr_nexttoward where y is minus infinity.
Public methodStatic memberCode examplempfr_nexttoward
Replace x by the next floating-point number in the direction of y.
Public methodStatic memberCode examplempfr_nrandom
Generate one random float according to a standard normal gaussian distribution (with mean zero and variance one).
Public methodStatic memberCode examplempfr_number_p
Return non-zero if op is an ordinary number (i.e., neither NaN nor an infinity). Return zero otherwise.
Public methodStatic memberCode examplempfr_out_str
Output op on stream stream, as a string of digits in base base, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_overflow_p
Return the overflow flag, which is non-zero iff the flag is set.
Public methodStatic memberCode examplempfr_pow
Set rop to op1 raised to op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_pow_si
Set rop to op1 raised to op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_pow_ui
Set rop to op1 raised to op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_pow_z
Set rop to op1 raised to op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_prec_round
Round x according to rnd with precision prec, which must be an integer between MPFR_PREC_MIN and MPFR_PREC_MAX (otherwise the behavior is undefined).
Public methodStatic memberCode examplempfr_print_rnd_mode
Return a string ("MPFR_RNDD", "MPFR_RNDU", "MPFR_RNDN", "MPFR_RNDZ", "MPFR_RNDA") corresponding to the rounding mode rnd, or a null pointer if rnd is an invalid rounding mode.
Public methodStatic memberCode examplempfr_printf
Print to stdout the optional arguments under the control of the template string template.
Public methodStatic memberCode examplempfr_rec_sqrt
Set rop to the reciprocal square root of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_regular_p
Return non-zero if op is a regular number (i.e., neither NaN, nor an infinity nor zero). Return zero otherwise.
Public methodStatic memberCode examplempfr_reldiff
Compute the relative difference between op1 and op2 and store the result in rop.
Public methodStatic memberCode examplempfr_remainder
Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded to the nearest integer (ties rounded to even).
Public methodStatic memberCode examplempfr_remquo(mpfr_t, ptrInt32, mpfr_t, mpfr_t, mpfr_rnd_t)
Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded to the nearest integer (ties rounded to even).
Public methodStatic memberCode examplempfr_remquo(mpfr_t, Int32, mpfr_t, mpfr_t, mpfr_rnd_t)
Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded to the nearest integer (ties rounded to even).
Public methodStatic memberCode examplempfr_rint
Set rop to op rounded to the nearest representable integer in the given direction rnd.
Public methodStatic memberCode examplempfr_rint_ceil
Set rop to op rounded to the next higher or equal integer.
Public methodStatic memberCode examplempfr_rint_floor
Set rop to op rounded to the next lower or equal integer.
Public methodStatic memberCode examplempfr_rint_round
Set rop to op rounded to the nearest integer, rounding halfway cases away from zero.
Public methodStatic memberCode examplempfr_rint_roundeven
Set rop to op rounded to the nearest integer, rounding halfway cases to the nearest even integer.
Public methodStatic memberCode examplempfr_rint_trunc
Set rop to op rounded to the next integer toward zero.
Public methodStatic memberCode examplempfr_root
Set rop to the kth root of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_rootn_ui
Set rop to the kth root of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_round
Set rop to op rounded to the nearest representable integer, rounding halfway cases away from zero (as in the roundTiesToAway mode of IEEE 754-2008).
Public methodStatic memberCode examplempfr_roundeven
Set rop to op rounded to the nearest representable integer, rounding halfway cases with the even-rounding rule zero (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDN).
Public methodStatic memberCode examplempfr_sec
Set rop to the secant of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sech
Set rop to the hyperbolic secant of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_set
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_d
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_default_prec
Set the default precision to be exactly prec bits, where prec can be any integer between MPFR_PREC_MINand MPFR_PREC_MAX.
Public methodStatic memberCode examplempfr_set_default_rounding_mode
Set the default rounding mode to rnd.
Public methodStatic memberCode examplempfr_set_divby0
Set (raised) the divide-by-zero flag.
Public methodStatic memberCode examplempfr_set_emax
Set the largest exponent allowed for a floating-point variable.
Public methodStatic memberCode examplempfr_set_emin
Set the smallest exponent allowed for a floating-point variable.
Public methodStatic memberCode examplempfr_set_erangeflag
Set (raised) the erange flag.
Public methodStatic memberCode examplempfr_set_exp
Set the exponent of x if e is in the current exponent range.
Public methodStatic memberCode examplempfr_set_f
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_flt
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_inexflag
Set (raised) the inexact flag.
Public methodStatic memberCode examplempfr_set_inf
Set the variable x to infinity.
Public methodStatic memberCode examplempfr_set_nan
Set the variable x to NaN (Not-a-Number).
Public methodStatic memberCode examplempfr_set_nanflag
Set (raised) the invalid flag.
Public methodStatic memberCode examplempfr_set_overflow
Set (raised) the overflow flag.
Public methodStatic memberCode examplempfr_set_prec
Reset the precision of x to be exactly prec bits, and set its value to NaN.
Public methodStatic memberCode examplempfr_set_prec_raw
Reset the precision of x to be exactly prec bits.
Public methodStatic memberCode examplempfr_set_q
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_si
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_si_2exp
Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_sj
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_sj_2exp
Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_str
Set rop to the value of the string s in base base, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_set_ui
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_ui_2exp
Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_uj
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_uj_2exp
Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_underflow
Set (raised) the underflow flag.
Public methodStatic memberCode examplempfr_set_z
Set the value of rop from op rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_z_2exp
Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
Public methodStatic memberCode examplempfr_set_zero
Set the variable x to zero.
Public methodStatic memberCode examplempfr_setsign
Set the value of rop from op, rounded toward the given direction rnd, then set (resp. clear) its sign bit if s is non-zero (resp. zero), even when op is a NaN.
Public methodStatic memberCode examplempfr_sgn
Return a positive value if op > 0, zero if op = 0, and a negative value if op < 0.
Public methodStatic memberCode examplempfr_si_div
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_si_sub
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_signbit
Return a non-zero value iff op has its sign bit set (i.e., if it is negative, -0, or a NaN whose representation has its sign bit set).
Public methodStatic memberCode examplempfr_sin
Set rop to the sine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sin_cos
Set simultaneously sop to the sine of op and cop to the cosine of op, rounded in the direction rnd with the corresponding precisions of sop and cop, which must be different variables.
Public methodStatic memberCode examplempfr_sinh
Set rop to the hyperbolic sine of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sinh_cosh
Set simultaneously sop to the hyperbolic sine of op and cop to the hyperbolic cosine of op, rounded in the direction rnd with the corresponding precision of sop and cop, which must be different variables.
Public methodStatic memberCode examplempfr_snprintf
Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
Public methodStatic memberCode examplempfr_sprintf
Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
Public methodStatic memberCode examplempfr_sqr
Set rop to the square of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sqrt
Set rop to the square root of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sqrt_ui
Set rop to the square root of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_strtofr(mpfr_t, char_ptr, char_ptr, Int32, mpfr_rnd_t)
Read a floating-point number from a string nptr in base base, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_strtofr(mpfr_t, char_ptr, ptrchar_ptr, Int32, mpfr_rnd_t)
Read a floating-point number from a string nptr in base base, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sub
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sub_d
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sub_q
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sub_si
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sub_ui
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_sub_z
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_subnormalize
This function rounds x emulating subnormal number arithmetic.
Public methodStatic memberCode examplempfr_sum
Set rop to the sum of all elements of tab, whose size is n, correctly rounded in the direction rnd.
Public methodStatic memberCode examplempfr_swap
Swap the structures pointed to by x and y.
Public methodStatic memberCode examplempfr_tan
Set rop to the tangent of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_tanh
Set rop to the hyperbolic tangent of op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_trunc
Set rop to op rounded to the next representable integer toward zero (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDZ).
Public methodStatic memberCode examplempfr_ui_div
Set rop to op1 / op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_ui_pow
Set rop to op1 raised to op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_ui_pow_ui
Set rop to op1 raised to op2, rounded in the direction rnd.
Public methodStatic memberCode examplempfr_ui_sub
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_underflow_p
Return the underflow flag, which is non-zero iff the flag is set.
Public methodStatic memberCode examplempfr_unordered_p
Return non-zero if op1 or op2 is a NaN (i.e., they cannot be compared), zero otherwise.
Public methodStatic memberCode examplempfr_urandom
Generate a uniformly distributed random float.
Public methodStatic memberCode examplempfr_urandomb
Generate a uniformly distributed random float in the interval 0 ≤ rop < 1.
Public methodStatic memberCode examplempfr_vasprintf(char_ptr, String, Object)
Write output as a null terminated string in a block of memory allocated using the allocation function (see GNU MPFR - Memory Handling).
Public methodStatic memberCode examplempfr_vasprintf(ptrchar_ptr, String, Object)
Write output as a null terminated string in a block of memory allocated using the allocation function (see GNU MPFR - Memory Handling).
Public methodStatic memberMPFR_VERSION_NUM
Create an integer in the same format as used by MPFR_VERSION from the given major, minor and patchlevel.
Public methodStatic memberCode examplempfr_vfprintf
Print to the stream stream the optional arguments under the control of the template string template.
Public methodStatic memberCode examplempfr_vprintf
Print to stdout the optional arguments under the control of the template string template.
Public methodStatic memberCode examplempfr_vsnprintf
Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
Public methodStatic memberCode examplempfr_vsprintf
Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
Public methodStatic memberCode examplempfr_y0
Set rop to the value of the first kind Bessel function of order 0 on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_y1
Set rop to the value of the first kind Bessel function of order 1 on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_yn
Set rop to the value of the first kind Bessel function of order n on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_z_sub
Set rop to op1 - op2 rounded in the direction rnd.
Public methodStatic memberCode examplempfr_zero_p
Return non-zero if op is zero. Return zero otherwise.
Public methodStatic memberCode examplempfr_zeta
Set rop to the value of the Riemann Zeta function on op rounded in the direction rnd.
Public methodStatic memberCode examplempfr_zeta_ui
Set rop to the value of the Riemann Zeta function on op rounded in the direction rnd.
Top
Fields
  NameDescription
Public fieldStatic memberMPFR_PREC_MAX
The maximum number of bits that can be used to represent the significand of a floating-point number.
Public fieldStatic memberMPFR_PREC_MIN
The minimum number of bits that can be used to represent the significand of a floating-point number.
Public fieldStatic memberMPFR_VERSION
MPFR_VERSION is the version of MPFR.
Public fieldStatic memberMPFR_VERSION_MAJOR
MPFR_VERSION_MAJOR is the major MPFR version.
Public fieldStatic memberMPFR_VERSION_MINOR
MPFR_VERSION_MINOR is the minor MPFR version.
Public fieldStatic memberMPFR_VERSION_PATCHLEVEL
MPFR_VERSION_PATCHLEVEL is the patch level of MPFR version.
Public fieldStatic memberMPFR_VERSION_STRING
MPFR_VERSION_STRING is the version (with an optional suffix, used in development and pre-release versions) as a string constant.
Top
Remarks

Functions Categories

Initialization Functions:

  • mpfr_clear - Free the space occupied by the significand of x.
  • mpfr_clears - Free the space occupied by all the mpfr_t variables of the given list x.
  • mpfr_get_default_prec - Return the current default MPFR precision in bits.
  • mpfr_get_prec - Return the precision of x, i.e., the number of bits used to store its significand.
  • mpfr_init - Initialize x, set its precision to the default precision, and set its value to NaN.
  • mpfr_init2 - Initialize x, set its precision to be exactly prec bits and its value to NaN.
  • mpfr_inits - Initialize all the mpfr_t variables of the given list x, set their precision to the default precision and their value to NaN.
  • mpfr_inits2 - Initialize all the mpfr_t variables of the given variable argument x, set their precision to be exactly prec bits and their value to NaN.
  • mpfr_set_default_prec - Set the default precision to be exactly prec bits, where prec can be any integer between MPFR_PREC_MINand MPFR_PREC_MAX.
  • mpfr_set_prec - Reset the precision of x to be exactly prec bits, and set its value to NaN.

Assignment Functions:

  • mpfr_set - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_d - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_f - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_flt - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_inf - Set the variable x to infinity.
  • mpfr_set_nan - Set the variable x to NaN.
  • mpfr_set_q - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_si - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_si_2exp - Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
  • mpfr_set_sj - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_sj_2exp - Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
  • mpfr_set_str - Set rop to the value of the string s in base base, rounded in the direction rnd.
  • mpfr_set_ui - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_ui_2exp - Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
  • mpfr_set_uj - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_uj_2exp - Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
  • mpfr_set_z - Set the value of rop from op rounded toward the given direction rnd.
  • mpfr_set_z_2exp - Set the value of rop from op multiplied by two to the power e, rounded toward the given direction rnd.
  • mpfr_set_zero - Set the variable x to zero.
  • mpfr_strtofr - Read a floating-point number from a string nptr in base base, rounded in the direction rnd.
  • mpfr_swap - Swap the structures pointed to by x and y.

Combined Initialization and Assignment Functions:

  • mpfr_init_set - Initialize rop and set its value from op, rounded in the direction rnd.
  • mpfr_init_set_d - Initialize rop and set its value from op, rounded in the direction rnd.
  • mpfr_init_set_f - Initialize rop and set its value from op, rounded in the direction rnd.
  • mpfr_init_set_q - Initialize rop and set its value from op, rounded in the direction rnd.
  • mpfr_init_set_si - Initialize rop and set its value from op, rounded in the direction rnd.
  • mpfr_init_set_str - Initialize x and set its value from the string s in base base, rounded in the direction rnd.
  • mpfr_init_set_ui - Initialize rop and set its value from op, rounded in the direction rnd.
  • mpfr_init_set_z - Initialize rop and set its value from op, rounded in the direction rnd.

Conversion Functions:

  • mpfr_fits_intmax_p - Return non-zero if op would fit in the C data type long when rounded to an integer in the direction rnd.
  • mpfr_fits_sint_p - Return non-zero if op would fit in the C data type int when rounded to an integer in the direction rnd.
  • mpfr_fits_slong_p - Return non-zero if op would fit in the C data type long when rounded to an integer in the direction rnd.
  • mpfr_fits_sshort_p - Return non-zero if op would fit in the C data type short when rounded to an integer in the direction rnd.
  • mpfr_fits_uint_p - Return non-zero if op would fit in the C data type unsigned int when rounded to an integer in the direction rnd.
  • mpfr_fits_uintmax_p - Return non-zero if op would fit in the C data type unsigned long when rounded to an integer in the direction rnd.
  • mpfr_fits_ulong_p - Return non-zero if op would fit in the C data type unsigned long when rounded to an integer in the direction rnd.
  • mpfr_fits_ushort_p - Return non-zero if op would fit in the C data type unsigned short when rounded to an integer in the direction rnd.
  • mpfr_free_str - Free a string allocated by O:Math.Mpfr.Native.mpfr_lib.mpfr_get_str using the unallocation function .
  • mpfr_frexp - Set exp and y such that 0.5 ≤ abs < 1 and y * 2^exp = x rounded to the precision of y, using the given rounding mode.
  • mpfr_get_d - Convert op to a double, using the rounding mode rnd.
  • mpfr_get_d_2exp - Return d and set exp such that 0.5 ≤ abs <1 and d * 2^exp = op rounded to double precision, using the given rounding mode.
  • mpfr_get_f - Convert op to a mpf_t, after rounding it with respect to rnd.
  • mpfr_get_flt - Convert op to a float, using the rounding mode rnd.
  • mpfr_get_si - Convert op to a long after rounding it with respect to rnd.
  • mpfr_get_sj - Convert op to an intmax_t after rounding it with respect to rnd.
  • mpfr_get_str - Convert op to a string of digits in base b, with rounding in the direction rnd, where n is either zero or the number of significant digits output in the string; in the latter case, n must be greater or equal to 2.
  • mpfr_get_ui - Convert op to an unsigned long after rounding it with respect to rnd.
  • mpfr_get_uj - Convert op to an uintmax_t after rounding it with respect to rnd.
  • mpfr_get_z - Convert op to a mpz_t, after rounding it with respect to rnd.
  • mpfr_get_q - Convert op to a mpq_t.
  • mpfr_get_z_2exp - Put the scaled significand of op into rop, and return the exponent exp such that op = rop * 2^exp.

Basic Arithmetic Functions:

  • mpfr_abs - Set rop to the absolute value of op rounded in the direction rnd.
  • mpfr_add - Set rop to op1 + op2 rounded in the direction rnd.
  • mpfr_add_d - Set rop to op1 + op2 rounded in the direction rnd.
  • mpfr_add_q - Set rop to op1 + op2 rounded in the direction rnd.
  • mpfr_add_si - Set rop to op1 + op2 rounded in the direction rnd.
  • mpfr_add_ui - Set rop to op1 + op2 rounded in the direction rnd.
  • mpfr_add_z - Set rop to op1 + op2 rounded in the direction rnd.
  • mpfr_cbrt - Set rop to the cubic root of op rounded in the direction rnd.
  • mpfr_rootn_ui - Set rop to the kth root of op rounded in the direction rnd.
  • mpfr_d_div - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_d_sub - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_dim - Set rop to the positive difference of op1 and op2, i.e., op1 - op2 rounded in the direction rnd if op1 > op2, +0 if op1op2, and NaN if op1 or op2 is NaN.
  • mpfr_div - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_div_2si - Set rop to op1 divided by 2^op2 rounded in the direction rnd.
  • mpfr_div_2ui - Set rop to op1 divided by 2^op2 rounded in the direction rnd.
  • mpfr_div_d - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_div_q - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_div_si - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_div_ui - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_div_z - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_mul - Set rop to op1 * op2 rounded in the direction rnd.
  • mpfr_mul_2si - Set rop to op1 * 2^op2 rounded in the direction rnd.
  • mpfr_mul_2ui - Set rop to op1 * 2^op2 rounded in the direction rnd.
  • mpfr_mul_d - Set rop to op1 * op2 rounded in the direction rnd.
  • mpfr_mul_q - Set rop to op1 * op2 rounded in the direction rnd.
  • mpfr_mul_si - Set rop to op1 * op2 rounded in the direction rnd.
  • mpfr_mul_ui - Set rop to op1 * op2 rounded in the direction rnd.
  • mpfr_mul_z - Set rop to op1 * op2 rounded in the direction rnd.
  • mpfr_neg - Set rop to -op rounded in the direction rnd.
  • mpfr_pow - Set rop to op1 raised to op2, rounded in the direction rnd.
  • mpfr_pow_si - Set rop to op1 raised to op2, rounded in the direction rnd.
  • mpfr_pow_ui - Set rop to op1 raised to op2, rounded in the direction rnd.
  • mpfr_pow_z - Set rop to op1 raised to op2, rounded in the direction rnd.
  • mpfr_rec_sqrt - Set rop to the reciprocal square root of op rounded in the direction rnd.
  • mpfr_root - Set rop to the kth root of op rounded in the direction rnd.
  • mpfr_si_div - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_si_sub - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sqr - Set rop to the square of op rounded in the direction rnd.
  • mpfr_sqrt - Set rop to the square root of op rounded in the direction rnd.
  • mpfr_sqrt_ui - Set rop to the square root of op rounded in the direction rnd.
  • mpfr_sub - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sub_d - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sub_q - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sub_si - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sub_ui - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sub_z - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_sum - Set rop to the sum of all elements of tab, whose size is n, rounded in the direction rnd.
  • mpfr_ui_div - Set rop to op1 / op2 rounded in the direction rnd.
  • mpfr_ui_pow - Set rop to op1 raised to op2, rounded in the direction rnd.
  • mpfr_ui_pow_ui - Set rop to op1 raised to op2, rounded in the direction rnd.
  • mpfr_ui_sub - Set rop to op1 - op2 rounded in the direction rnd.
  • mpfr_z_sub - Set rop to op1 - op2 rounded in the direction rnd.

Comparison Functions:

Special Functions:

  • mpfr_acos - Set rop to the arc-cosine of op rounded in the direction rnd.
  • mpfr_acosh - Set rop to the inverse hyperbolic cosine of op rounded in the direction rnd.
  • mpfr_agm - Set rop to the arithmetic-geometric mean of op1 and op2 rounded in the direction rnd.
  • mpfr_ai - Set rop to the value of the Airy function Ai on x rounded in the direction rnd.
  • mpfr_asin - Set rop to the arc-sine of op rounded in the direction rnd.
  • mpfr_asinh - Set rop to the inverse hyperbolic sine of op rounded in the direction rnd.
  • mpfr_atan - Set rop to the arc-tangent of op rounded in the direction rnd.
  • mpfr_atan2 - Set rop to the arc-tangent2 of y and x rounded in the direction rnd.
  • mpfr_atanh - Set rop to the inverse hyperbolic tangent of op rounded in the direction rnd.
  • mpfr_const_catalan - Set rop to the value of Catalan’s constant 0.915… rounded in the direction rnd.
  • mpfr_const_euler - Set rop to the value of Euler’s constant 0.577… rounded in the direction rnd.
  • mpfr_const_log2 - Set rop to the logarithm of 2 rounded in the direction rnd.
  • mpfr_const_pi - Set rop to the value of Pi rounded in the direction rnd.
  • mpfr_cos - Set rop to the cosine of op rounded in the direction rnd.
  • mpfr_cosh - Set rop to the hyperbolic cosine of op rounded in the direction rnd.
  • mpfr_cot - Set rop to the cotangent of op rounded in the direction rnd.
  • mpfr_coth - Set rop to the hyperbolic cotangent of op rounded in the direction rnd.
  • mpfr_csc - Set rop to the cosecant of op rounded in the direction rnd.
  • mpfr_csch - Set rop to the hyperbolic cosecant of op rounded in the direction rnd.
  • mpfr_digamma - Set rop to the value of the Digamma function on op rounded in the direction rnd.
  • mpfr_eint - Set rop to the exponential integral of op rounded in the direction rnd.
  • mpfr_erf - Set rop to the value of the error function on op rounded in the direction rnd.
  • mpfr_erfc - Set rop to the value of the complementary error function on op rounded in the direction rnd.
  • mpfr_exp - Set rop to the exponential of op rounded in the direction rnd.
  • mpfr_exp10 - Set rop to 10^op rounded in the direction rnd.
  • mpfr_exp2 - Set rop to 2^op rounded in the direction rnd.
  • mpfr_expm1 - Set rop to the e^op - 1, rounded in the direction rnd.
  • mpfr_fac_ui - Set rop to the factorial of op rounded in the direction rnd.
  • mpfr_fma - Set rop to (op1 × op2) + op3 rounded in the direction rnd.
  • mpfr_fms - Set rop to (op1 × op2) - op3 rounded in the direction rnd.
  • mpfr_fmma - Set rop to (op1 × op2) + (op3 × op4) rounded in the direction rnd.
  • mpfr_fmms - Set rop to (op1 × op2) - (op3 × op4) rounded in the direction rnd.
  • mpfr_free_cache - Free all caches and pools used by MPFR internally.
  • mpfr_free_cache2 - Free various caches and pools used by MPFR internally, as specified by way, which is a set of flags.
  • mpfr_free_pool - Free the pools used by MPFR internally.
  • mpfr_mp_memory_cleanup - This function should be called before calling mp_set_memory_functions(allocate_function, reallocate_function, free_function).
  • mpfr_gamma - Set rop to the value of the Gamma function on op rounded in the direction rnd.
  • mpfr_gamma_inc - Set rop to the value of the Incomplete Gamma function on op and op2 rounded in the direction rnd.
  • mpfr_beta - Set rop to the value of the Beta function at arguments op1 and op2, rounded in the direction rnd.
  • mpfr_hypot - Set rop to the Euclidean norm of x and y, i.e., the square root of the sum of the squares of x and y rounded in the direction rnd.
  • mpfr_j0 - Set rop to the value of the first kind Bessel function of order 0 on op rounded in the direction rnd.
  • mpfr_j1 - Set rop to the value of the first kind Bessel function of order 1 on op rounded in the direction rnd.
  • mpfr_jn - Set rop to the value of the first kind Bessel function of order n on op rounded in the direction rnd.
  • mpfr_lgamma - Set rop to the value of the logarithm of the absolute value of the Gamma function on op rounded in the direction rnd.
  • mpfr_li2 - Set rop to real part of the dilogarithm of op rounded in the direction rnd.
  • mpfr_lngamma - Set rop to the value of the logarithm of the Gamma function on op rounded in the direction rnd.
  • mpfr_log - Set rop to the natural logarithm of op rounded in the direction rnd.
  • mpfr_log_ui - Set rop to the natural logarithm of op rounded in the direction rnd.
  • mpfr_log10 - Set rop to log10 rounded in the direction rnd.
  • mpfr_log1p - Set rop to the logarithm of one plus op, rounded in the direction rnd.
  • mpfr_log2 - Set rop to log2 rounded in the direction rnd.
  • mpfr_sec - Set rop to the secant of op rounded in the direction rnd.
  • mpfr_sech - Set rop to the hyperbolic secant of op rounded in the direction rnd.
  • mpfr_sin - Set rop to the sine of op rounded in the direction rnd.
  • mpfr_sin_cos - Set simultaneously sop to the sine of op and cop to the cosine of op, rounded in the direction rnd with the corresponding precisions of sop and cop, which must be different variables.
  • mpfr_sinh - Set rop to the hyperbolic sine of op rounded in the direction rnd.
  • mpfr_sinh_cosh - Set simultaneously sop to the hyperbolic sine of op and cop to the hyperbolic cosine of op, rounded in the direction rnd with the corresponding precision of sop and cop, which must be different variables.
  • mpfr_tan - Set rop to the tangent of op rounded in the direction rnd.
  • mpfr_tanh - Set rop to the hyperbolic tangent of op rounded in the direction rnd.
  • mpfr_y0 - Set rop to the value of the first kind Bessel function of order 0 on op rounded in the direction rnd.
  • mpfr_y1 - Set rop to the value of the first kind Bessel function of order 1 on op rounded in the direction rnd.
  • mpfr_yn - Set rop to the value of the first kind Bessel function of order n on op rounded in the direction rnd.
  • mpfr_zeta - Set rop to the value of the Riemann Zeta function on op rounded in the direction rnd.
  • mpfr_zeta_ui - Set rop to the value of the Riemann Zeta function on op rounded in the direction rnd.

Input and Output Functions:

Formatted Output Functions:

  • mpfr_asprintf - Write output as a null terminated string in a block of memory allocated using the allocation function .
  • mpfr_fprintf - Print to the stream stream the optional arguments under the control of the template string template.
  • mpfr_printf - Print to stdout the optional arguments under the control of the template string template.
  • mpfr_snprintf - Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
  • mpfr_sprintf - Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
  • mpfr_vasprintf - Write output as a null terminated string in a block of memory allocated using the allocation function .
  • mpfr_vfprintf - Print to the stream stream the optional arguments under the control of the template string template.
  • mpfr_vprintf - Print to stdout the optional arguments under the control of the template string template.
  • mpfr_vsnprintf - Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.
  • mpfr_vsprintf - Form a null-terminated string corresponding to the optional arguments under the control of the template string template, and print it in buf.

Integer and Remainder Related Functions:

  • mpfr_ceil - Set rop to op rounded to the next higher or equal representable integer (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDU).
  • mpfr_floor - Set rop to op rounded to the next lower or equal representable integer (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDD).
  • mpfr_fmod - Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded toward zero.
  • mpfr_fmodquo - Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded toward zero.
  • mpfr_frac - Set rop to the fractional part of op, having the same sign as op, rounded in the direction rnd.
  • mpfr_integer_p - Return non-zero iff op is an integer.
  • mpfr_modf - Set simultaneously iop to the integral part of op and fop to the fractional part of op, rounded in the direction rnd with the corresponding precision of iop and fop.
  • mpfr_remainder - Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded to the nearest integer .
  • mpfr_remquo - Set r to the value of x - n * y, rounded according to the direction rnd, where n is the integer quotient of x divided by y, rounded to the nearest integer .
  • mpfr_rint - Set rop to op rounded to the nearest representable integer in the given direction rnd.
  • mpfr_rint_ceil - Set rop to op rounded to the next higher or equal integer.
  • mpfr_rint_floor - Set rop to op rounded to the next lower or equal integer.
  • mpfr_rint_round - Set rop to op rounded to the nearest integer, rounding halfway cases away from zero.
  • mpfr_rint_roundeven - Set rop to op rounded to the nearest integer, rounding halfway cases to the nearest even integer.
  • mpfr_rint_trunc - Set rop to op rounded to the next integer toward zero.
  • mpfr_round - Set rop to op rounded to the nearest representable integer, rounding halfway cases away from zero.
  • mpfr_roundeven - Set rop to op rounded to the nearest representable integer, rounding halfway cases with the even-rounding rule zero (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDZ).
  • mpfr_trunc - Set rop to op rounded to the next representable integer toward zero (like mpfr_rint(mpfr_t, mpfr_t, mpfr_rnd_t) with MPFR_RNDZ).

Rounding Related Functions:

Miscellaneous Functions:

Exception Related Functions:

Compatibility With MPF:

Custom Interface:

See Also