Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GMPFunctions

Hierarchy

  • GMPFunctionsType
    • GMPFunctions

Index

Properties

Accessors

Methods

Properties

free: (ptr: c_void_ptr) => void = ...

Type declaration

gmp_randclear: (state: gmp_randstate_t) => void = ...

Type declaration

gmp_randinit_default: (state: gmp_randstate_t) => void = ...

Type declaration

gmp_randinit_lc_2exp: (state: gmp_randstate_t, a: mpz_srcptr, c: c_unsigned_long_int, m2exp: mp_bitcnt_t) => void = ...

Type declaration

gmp_randinit_lc_2exp_size: (state: gmp_randstate_t, size: mp_bitcnt_t) => c_int = ...

Type declaration

gmp_randinit_mt: (state: gmp_randstate_t) => void = ...

Type declaration

gmp_randinit_set: (rop: gmp_randstate_t, op: __gmp_randstate_struct_ptr) => void = ...

Type declaration

gmp_randseed: (state: gmp_randstate_t, seed: mpz_srcptr) => void = ...

Type declaration

gmp_randseed_ui: (state: gmp_randstate_t, seed: c_unsigned_long_int) => void = ...

Type declaration

gmp_urandomb_ui: (state: gmp_randstate_t, n: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

gmp_urandomm_ui: (state: gmp_randstate_t, n: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

malloc: (size: c_size_t) => c_void_ptr = ...

Type declaration

malloc_cstr: (str: string) => number = ...

Type declaration

    • (str: string): number
    • Parameters

      • str: string

      Returns number

mp_bits_per_limb: () => number = ...

Type declaration

    • (): number
    • Get GMP limb size

      Returns number

mpfr_abs: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_acos: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_acosh: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_add: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_add_d: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_double, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_add_q: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpq_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_add_si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_add_ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_add_z: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpz_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_agm: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_ai: (rop: mpfr_ptr, x: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_asin: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_asinh: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_atan: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_atan2: (rop: mpfr_ptr, y: mpfr_srcptr, x: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_atanh: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_beta: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_can_round: (b: mpfr_srcptr, err: mpfr_exp_t, rnd1: mpfr_rnd_t, rnd2: mpfr_rnd_t, prec: mpfr_prec_t) => c_int = ...

Type declaration

mpfr_cbrt: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_ceil: (rop: mpfr_ptr, op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_check_range: (x: mpfr_ptr, t: c_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_clear: (x: mpfr_ptr) => void = ...

Type declaration

    • Free the space occupied by the significand of x.

      Parameters

      Returns void

mpfr_clear_divby0: () => void = ...

Type declaration

    • (): void
    • Clear (lower) the divide-by-zero flag.

      Returns void

mpfr_clear_erangeflag: () => void = ...

Type declaration

    • (): void
    • Clear (lower) the erange flag.

      Returns void

mpfr_clear_flags: () => void = ...

Type declaration

    • (): void
    • Clear (lower) all global flags (underflow, overflow, divide-by-zero, invalid, inexact, erange).

      Returns void

mpfr_clear_inexflag: () => void = ...

Type declaration

    • (): void
    • Clear (lower) the inexact flag.

      Returns void

mpfr_clear_nanflag: () => void = ...

Type declaration

    • (): void
    • Clear (lower) the invalid flag.

      Returns void

mpfr_clear_overflow: () => void = ...

Type declaration

    • (): void
    • Clear (lower) the overflow flag.

      Returns void

mpfr_clear_underflow: () => void = ...

Type declaration

    • (): void
    • Clear (lower) the underflow flag.

      Returns void

mpfr_clears: (...ptrs: mpfr_ptr[]) => void = ...

Type declaration

    • Free the space occupied by all the mpfr_t variables of the given list x.

      Parameters

      Returns void

mpfr_cmp: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_cmp_d: (op1: mpfr_srcptr, op2: c_double) => c_int = ...

Type declaration

mpfr_cmp_q: (op1: mpfr_srcptr, op2: mpq_srcptr) => c_int = ...

Type declaration

mpfr_cmp_si: (op1: mpfr_srcptr, op2: c_signed_long_int) => c_int = ...

Type declaration

mpfr_cmp_si_2exp: (op1: mpfr_srcptr, op2: c_signed_long_int, e: mpfr_exp_t) => c_int = ...

Type declaration

mpfr_cmp_ui: (op1: mpfr_srcptr, op2: c_unsigned_long_int) => c_int = ...

Type declaration

mpfr_cmp_ui_2exp: (op1: mpfr_srcptr, op2: c_unsigned_long_int, e: mpfr_exp_t) => c_int = ...

Type declaration

mpfr_cmp_z: (op1: mpfr_srcptr, op2: mpz_srcptr) => c_int = ...

Type declaration

mpfr_cmpabs: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_cmpabs_ui: (op1: mpfr_srcptr, op2: c_unsigned_long_int) => c_int = ...

Type declaration

mpfr_const_catalan: (rop: mpfr_ptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_const_euler: (rop: mpfr_ptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_const_log2: (rop: mpfr_ptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_const_pi: (rop: mpfr_ptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_copysign: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_cos: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_cosh: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_cot: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_coth: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_csc: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_csch: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_d_div: (rop: mpfr_ptr, op1: c_double, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_d_sub: (rop: mpfr_ptr, op1: c_double, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_digamma: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_dim: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_2exp: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_2si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_2ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_d: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_double, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_q: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpq_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_div_z: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpz_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_divby0_p: () => c_int = ...

Type declaration

    • Return the divide-by-zero flag, which is non-zero iff the flag is set.

      Returns c_int

mpfr_dot: (rop: mpfr_ptr, a: mpfr_ptr_ptr, b: mpfr_ptr_ptr, n: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_eint: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_eq: (op1: mpfr_srcptr, op2: mpfr_srcptr, op3: c_unsigned_long_int) => c_int = ...

Type declaration

mpfr_equal_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_erandom: (rop: mpfr_ptr, state: gmp_randstate_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_erangeflag_p: () => c_int = ...

Type declaration

    • Return the erange flag, which is non-zero iff the flag is set.

      Returns c_int

mpfr_erf: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_erfc: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_exp: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_exp10: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_exp2: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_expm1: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fac_ui: (rop: mpfr_ptr, op: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_intmax_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_sint_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_slong_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_sshort_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_uint_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_uintmax_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_ulong_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fits_ushort_p: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_flags_clear: (mask: mpfr_flags_t) => void = ...

Type declaration

mpfr_flags_restore: (flags: mpfr_flags_t, mask: mpfr_flags_t) => void = ...

Type declaration

mpfr_flags_save: () => mpfr_flags_t = ...

Type declaration

mpfr_flags_set: (mask: mpfr_flags_t) => void = ...

Type declaration

mpfr_flags_test: (mask: mpfr_flags_t) => mpfr_flags_t = ...

Type declaration

mpfr_floor: (rop: mpfr_ptr, op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_fma: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, op3: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fmma: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, op3: mpfr_srcptr, op4: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fmms: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, op3: mpfr_srcptr, op4: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fmod: (rop: mpfr_ptr, x: mpfr_srcptr, y: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fmodquo: (rop: mpfr_ptr, q: c_long_ptr, x: mpfr_srcptr, y: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_fms: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, op3: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_frac: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_free_cache: () => void = ...

Type declaration

    • (): void
    • Free all caches and pools used by MPFR internally.

      Returns void

mpfr_free_cache2: (way: mpfr_free_cache_t) => void = ...

Type declaration

    • Free various caches and pools used by MPFR internally, as specified by way, which is a set of flags

      Parameters

      Returns void

mpfr_free_pool: () => void = ...

Type declaration

    • (): void
    • Free the pools used by MPFR internally.

      Returns void

mpfr_free_str: (str: c_str_ptr) => void = ...

Type declaration

    • Free a string allocated by mpfr_get_str using the unallocation function (see GNU MPFR - Memory Handling).

      Parameters

      Returns void

mpfr_frexp: (exp: mpfr_exp_t_ptr, y: mpfr_ptr, x: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_gamma: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_gamma_inc: (rop: mpfr_ptr, op: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_get_d: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_double = ...

Type declaration

mpfr_get_d_2exp: (exp: c_long_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_double = ...

Type declaration

mpfr_get_default_prec: () => mpfr_prec_t = ...

Type declaration

mpfr_get_default_rounding_mode: () => mpfr_rnd_t = ...

Type declaration

mpfr_get_emax: () => mpfr_exp_t = ...

Type declaration

    • Return the (current) largest exponent allowed for a floating-point variable.

      Returns mpfr_exp_t

mpfr_get_emax_max: () => mpfr_exp_t = ...

Type declaration

mpfr_get_emax_min: () => mpfr_exp_t = ...

Type declaration

mpfr_get_emin: () => mpfr_exp_t = ...

Type declaration

    • Return the (current) smallest exponent allowed for a floating-point variable.

      Returns mpfr_exp_t

mpfr_get_emin_max: () => mpfr_exp_t = ...

Type declaration

mpfr_get_emin_min: () => mpfr_exp_t = ...

Type declaration

mpfr_get_exp: (x: mpfr_srcptr) => mpfr_exp_t = ...

Type declaration

mpfr_get_prec: (x: mpfr_srcptr) => mpfr_prec_t = ...

Type declaration

mpfr_get_q: (rop: mpq_ptr, op: mpfr_srcptr) => void = ...

Type declaration

mpfr_get_si: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_signed_long_int = ...

Type declaration

mpfr_get_str: (str: c_str_ptr, expptr: mpfr_exp_t_ptr, base: c_int, n: c_size_t, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_str_ptr = ...

Type declaration

mpfr_get_str_ndigits: (b: c_int, p: mpfr_prec_t) => c_size_t = ...

Type declaration

    • Return the minimal integer m such that any number of p bits, when output with m digits in radix b with rounding to nearest, can be recovered exactly when read again, still with rounding to nearest. More precisely, we have m = 1 + ceil(p*log(2)/log(b)), with p replaced by p-1 if b is a power of 2.

      Parameters

      Returns c_size_t

mpfr_get_ui: (op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_unsigned_long_int = ...

Type declaration

mpfr_get_version: () => c_str_ptr = ...

Type declaration

mpfr_get_z: (rop: mpz_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_get_z_2exp: (rop: mpz_ptr, op: mpfr_srcptr) => mpfr_exp_t = ...

Type declaration

    • 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.

      Parameters

      Returns mpfr_exp_t

mpfr_greater_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_greaterequal_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_hypot: (rop: mpfr_ptr, x: mpfr_srcptr, y: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_inexflag_p: () => c_int = ...

Type declaration

    • Return the inexact flag, which is non-zero iff the flag is set.

      Returns c_int

mpfr_inf_p: (op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_init: (x: mpfr_ptr) => void = ...

Type declaration

    • Initialize x, set its precision to the default precision, and set its value to NaN.

      Parameters

      Returns void

mpfr_init2: (x: mpfr_ptr, prec: mpfr_prec_t) => void = ...

Type declaration

mpfr_init_set: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => any = ...

Type declaration

mpfr_init_set_d: (rop: mpfr_ptr, op: number, rnd: mpfr_rnd_t) => any = ...

Type declaration

    • Initialize rop and set its value from op, rounded in the direction rnd.

      Parameters

      Returns any

mpfr_init_set_q: (rop: mpfr_ptr, op: mpq_srcptr, rnd: mpfr_rnd_t) => any = ...

Type declaration

mpfr_init_set_si: (rop: mpfr_ptr, op: number, rnd: mpfr_rnd_t) => any = ...

Type declaration

    • Initialize rop and set its value from op, rounded in the direction rnd.

      Parameters

      Returns any

mpfr_init_set_str: (x: mpfr_ptr, s: c_str_ptr, base: c_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_init_set_ui: (rop: mpfr_ptr, op: number, rnd: mpfr_rnd_t) => any = ...

Type declaration

    • Initialize rop and set its value from op, rounded in the direction rnd.

      Parameters

      Returns any

mpfr_init_set_z: (rop: mpfr_ptr, op: mpz_srcptr, rnd: mpfr_rnd_t) => any = ...

Type declaration

mpfr_inits: (...ptrs: mpfr_ptr[]) => void = ...

Type declaration

    • Initialize all the mpfr_t variables of the given list x, set their precision to the default precision and their value to NaN.

      Parameters

      Returns void

mpfr_inits2: (prec: mpfr_prec_t, ...ptrs: mpfr_ptr[]) => void = ...

Type declaration

    • 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.

      Parameters

      Returns void

mpfr_integer_p: (op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_j0: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_j1: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_jn: (rop: mpfr_ptr, n: c_signed_long_int, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_less_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_lessequal_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_lessgreater_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_lgamma: (rop: mpfr_ptr, signp: c_int_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_li2: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_lngamma: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_log: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_log10: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_log1p: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_log2: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_log_ui: (rop: mpfr_ptr, op: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_max: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_min: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_min_prec: (x: mpfr_srcptr) => mpfr_prec_t = ...

Type declaration

mpfr_modf: (rop: mpfr_ptr, fop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_2exp: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_2si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_2ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_d: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_double, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_q: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpq_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_mul_z: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpz_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_nan_p: (op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_nanflag_p: () => c_int = ...

Type declaration

    • Return the invalid flag, which is non-zero iff the flag is set.

      Returns c_int

mpfr_neg: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_nextabove: (x: mpfr_ptr) => void = ...

Type declaration

    • Equivalent to mpfr_nexttoward where y is plus infinity.

      Parameters

      Returns void

mpfr_nextbelow: (x: mpfr_ptr) => void = ...

Type declaration

    • Equivalent to mpfr_nexttoward where y is minus infinity.

      Parameters

      Returns void

mpfr_nexttoward: (x: mpfr_ptr, y: mpfr_srcptr) => void = ...

Type declaration

mpfr_nrandom: (rop: mpfr_ptr, state: gmp_randstate_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_number_p: (op: mpfr_srcptr) => c_int = ...

Type declaration

    • Return non-zero if op is an ordinary number (i.e., neither NaN nor an infinity). Return zero otherwise.

      Parameters

      Returns c_int

mpfr_overflow_p: () => c_int = ...

Type declaration

    • Return the overflow flag, which is non-zero iff the flag is set.

      Returns c_int

mpfr_pow: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_pow_si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_pow_ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_pow_z: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpz_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_prec_round: (x: mpfr_ptr, prec: mpfr_prec_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rec_sqrt: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_regular_p: (op: mpfr_srcptr) => c_int = ...

Type declaration

    • Return non-zero if op is a regular number (i.e., neither NaN, nor an infinity nor zero). Return zero otherwise.

      Parameters

      Returns c_int

mpfr_reldiff: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => void = ...

Type declaration

mpfr_remainder: (rop: mpfr_ptr, x: mpfr_srcptr, y: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_remquo: (r: mpfr_ptr, q: c_long_ptr, x: mpfr_srcptr, y: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rint: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rint_ceil: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rint_floor: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rint_round: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rint_roundeven: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rint_trunc: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_rootn_ui: (rop: mpfr_ptr, op: mpfr_srcptr, k: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_round: (rop: mpfr_ptr, op: mpfr_srcptr) => c_int = ...

Type declaration

    • 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).

      Parameters

      Returns c_int

mpfr_roundeven: (rop: mpfr_ptr, op: mpfr_srcptr) => c_int = ...

Type declaration

    • 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).

      Parameters

      Returns c_int

mpfr_sec: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sech: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_d: (rop: mpfr_ptr, op: c_double, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_default_prec: (prec: mpfr_prec_t) => void = ...

Type declaration

    • Set the default precision to be exactly prec bits, where prec can be any integer between MPFR_PREC_MINand MPFR_PREC_MAX.

      Parameters

      Returns void

mpfr_set_default_rounding_mode: (rnd: mpfr_rnd_t) => void = ...

Type declaration

mpfr_set_divby0: () => void = ...

Type declaration

    • (): void
    • Set (raised) the divide-by-zero flag.

      Returns void

mpfr_set_emax: (exp: mpfr_exp_t) => c_int = ...

Type declaration

mpfr_set_emin: (exp: mpfr_exp_t) => c_int = ...

Type declaration

mpfr_set_erangeflag: () => void = ...

Type declaration

    • (): void
    • Set (raised) the erange flag.

      Returns void

mpfr_set_exp: (x: mpfr_ptr, e: mpfr_exp_t) => c_int = ...

Type declaration

mpfr_set_inexflag: () => void = ...

Type declaration

    • (): void
    • Set (raised) the inexact flag.

      Returns void

mpfr_set_inf: (x: mpfr_ptr, sign: c_int) => void = ...

Type declaration

mpfr_set_nan: (x: mpfr_ptr) => void = ...

Type declaration

    • Set the variable x to NaN (Not-a-Number).

      Parameters

      Returns void

mpfr_set_nanflag: () => void = ...

Type declaration

    • (): void
    • Set (raised) the invalid flag.

      Returns void

mpfr_set_overflow: () => void = ...

Type declaration

    • (): void
    • Set (raised) the overflow flag.

      Returns void

mpfr_set_prec: (x: mpfr_ptr, prec: mpfr_prec_t) => void = ...

Type declaration

mpfr_set_prec_raw: (x: mpfr_ptr, prec: mpfr_prec_t) => void = ...

Type declaration

mpfr_set_q: (rop: mpfr_ptr, op: mpq_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_si: (rop: mpfr_ptr, op: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_si_2exp: (rop: mpfr_ptr, op: c_signed_long_int, e: mpfr_exp_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_str: (rop: mpfr_ptr, s: c_str_ptr, base: c_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_ui: (rop: mpfr_ptr, op: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_ui_2exp: (rop: mpfr_ptr, op: c_unsigned_long_int, e: mpfr_exp_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_underflow: () => void = ...

Type declaration

    • (): void
    • Set (raised) the underflow flag.

      Returns void

mpfr_set_z: (rop: mpfr_ptr, op: mpz_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_z_2exp: (rop: mpfr_ptr, op: mpz_srcptr, e: mpfr_exp_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_set_zero: (x: mpfr_ptr, sign: c_int) => void = ...

Type declaration

mpfr_setsign: (rop: mpfr_ptr, op: mpfr_srcptr, s: c_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sgn: (op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_si_div: (rop: mpfr_ptr, op1: c_signed_long_int, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_si_sub: (rop: mpfr_ptr, op1: c_signed_long_int, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_signbit: (op: mpfr_srcptr) => c_int = ...

Type declaration

    • 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).

      Parameters

      Returns c_int

mpfr_sin: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sin_cos: (sop: mpfr_ptr, cop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sinh: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sinh_cosh: (sop: mpfr_ptr, cop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sqr: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sqrt: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sqrt_ui: (rop: mpfr_ptr, op: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_strtofr: (rop: mpfr_ptr, nptr: c_str_ptr, endptr: c_str_ptr_ptr, base: c_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sub: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sub_d: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_double, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sub_q: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpq_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sub_si: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_signed_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sub_ui: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sub_z: (rop: mpfr_ptr, op1: mpfr_srcptr, op2: mpz_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_subnormalize: (x: mpfr_ptr, t: c_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_sum: (rop: mpfr_ptr, tab: mpfr_ptr_ptr, n: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_swap: (x: mpfr_ptr, y: mpfr_ptr) => void = ...

Type declaration

mpfr_t: () => mpfr_ptr = ...

Type declaration

    • Allocates memory for the mpfr_t C struct and returns pointer

      Returns mpfr_ptr

mpfr_t_free: (mpfr_ptr: mpfr_ptr) => void = ...

Type declaration

    • Deallocates memory of a mpfr_t C struct

      Parameters

      Returns void

mpfr_t_frees: (...ptrs: mpfr_ptr[]) => void = ...

Type declaration

    • Deallocates memory of a NULL-terminated list of mpfr_t variables

      Parameters

      Returns void

mpfr_tan: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_tanh: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_total_order_p: (x: mpfr_srcptr, y: mpfr_srcptr) => c_int = ...

Type declaration

    • This function implements the totalOrder predicate from IEEE 754-2008, where -NaN < -Inf < negative finite numbers < -0 < +0 < positive finite numbers < +Inf < +NaN. It returns a non-zero value (true) when x is smaller than or equal to y for this order relation, and zero (false) otherwise

      Parameters

      Returns c_int

mpfr_trunc: (rop: mpfr_ptr, op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_ui_div: (rop: mpfr_ptr, op1: c_unsigned_long_int, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_ui_pow: (rop: mpfr_ptr, op1: c_unsigned_long_int, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_ui_pow_ui: (rop: mpfr_ptr, op1: c_unsigned_long_int, op2: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_ui_sub: (rop: mpfr_ptr, op1: c_unsigned_long_int, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_underflow_p: () => c_int = ...

Type declaration

    • Return the underflow flag, which is non-zero iff the flag is set.

      Returns c_int

mpfr_unordered_p: (op1: mpfr_srcptr, op2: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_urandom: (rop: mpfr_ptr, state: gmp_randstate_t, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_urandomb: (rop: mpfr_ptr, state: gmp_randstate_t) => c_int = ...

Type declaration

mpfr_y0: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_y1: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_yn: (rop: mpfr_ptr, n: c_signed_long_int, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_z_sub: (rop: mpfr_ptr, op1: mpz_srcptr, op2: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_zero_p: (op: mpfr_srcptr) => c_int = ...

Type declaration

mpfr_zeta: (rop: mpfr_ptr, op: mpfr_srcptr, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpfr_zeta_ui: (rop: mpfr_ptr, op: c_unsigned_long_int, rnd: mpfr_rnd_t) => c_int = ...

Type declaration

mpq_abs: (rop: mpq_ptr, op: mpq_srcptr) => void = ...

Type declaration

mpq_add: (sum: mpq_ptr, addend1: mpq_srcptr, addend2: mpq_srcptr) => void = ...

Type declaration

mpq_canonicalize: (op: mpq_ptr) => void = ...

Type declaration

    • Remove any factors that are common to the numerator and denominator of op, and make the denominator positive.

      Parameters

      Returns void

mpq_clear: (x: mpq_ptr) => void = ...

Type declaration

    • Free the space occupied by x.

      Parameters

      Returns void

mpq_clears: (...ptrs: mpq_ptr[]) => void = ...

Type declaration

    • Free the space occupied by a NULL-terminated list of mpq_t variables.

      Parameters

      Returns void

mpq_cmp: (op1: mpq_srcptr, op2: mpq_srcptr) => c_int = ...

Type declaration

mpq_cmp_si: (op1: mpq_srcptr, num2: c_signed_long_int, den2: c_unsigned_long_int) => c_int = ...

Type declaration

mpq_cmp_ui: (op1: mpq_srcptr, num2: c_unsigned_long_int, den2: c_unsigned_long_int) => c_int = ...

Type declaration

mpq_cmp_z: (op1: mpq_srcptr, op2: mpz_srcptr) => c_int = ...

Type declaration

mpq_denref: (op: mpq_ptr) => mpz_ptr = ...

Type declaration

mpq_div: (quotient: mpq_ptr, dividend: mpq_srcptr, divisor: mpq_srcptr) => void = ...

Type declaration

mpq_div_2exp: (rop: mpq_ptr, op1: mpq_srcptr, op2: mp_bitcnt_t) => void = ...

Type declaration

mpq_equal: (op1: mpq_srcptr, op2: mpq_srcptr) => c_int = ...

Type declaration

mpq_get_d: (op: mpq_srcptr) => c_double = ...

Type declaration

mpq_get_den: (denominator: mpz_ptr, rational: mpq_srcptr) => void = ...

Type declaration

mpq_get_num: (numerator: mpz_ptr, rational: mpq_srcptr) => void = ...

Type declaration

mpq_get_str: (str: c_str_ptr, base: c_int, op: mpq_srcptr) => c_str_ptr = ...

Type declaration

mpq_init: (x: mpq_ptr) => void = ...

Type declaration

    • Initialize x and set it to 0/1.

      Parameters

      Returns void

mpq_inits: (...ptrs: mpq_ptr[]) => void = ...

Type declaration

    • Initialize a NULL-terminated list of mpq_t variables, and set their values to 0/1.

      Parameters

      Returns void

mpq_inv: (inverted_number: mpq_ptr, number: mpq_srcptr) => void = ...

Type declaration

mpq_mul: (product: mpq_ptr, multiplier: mpq_srcptr, multiplicand: mpq_srcptr) => void = ...

Type declaration

mpq_mul_2exp: (rop: mpq_ptr, op1: mpq_srcptr, op2: mp_bitcnt_t) => void = ...

Type declaration

mpq_neg: (negated_operand: mpq_ptr, operand: mpq_srcptr) => void = ...

Type declaration

mpq_numref: (op: mpq_ptr) => mpz_ptr = ...

Type declaration

mpq_set: (rop: mpq_ptr, op: mpq_srcptr) => void = ...

Type declaration

mpq_set_d: (rop: mpq_ptr, op: c_double) => void = ...

Type declaration

    • Set rop to the value of op. There is no rounding, this conversion is exact.

      Parameters

      Returns void

mpq_set_den: (rational: mpq_ptr, denominator: mpz_srcptr) => void = ...

Type declaration

mpq_set_num: (rational: mpq_ptr, numerator: mpz_srcptr) => void = ...

Type declaration

mpq_set_si: (rop: mpq_ptr, op1: c_signed_long_int, op2: c_unsigned_long_int) => void = ...

Type declaration

mpq_set_str: (rop: mpq_ptr, str: c_str_ptr, base: c_int) => c_int = ...

Type declaration

mpq_set_ui: (rop: mpq_ptr, op1: c_unsigned_long_int, op2: c_unsigned_long_int) => void = ...

Type declaration

mpq_set_z: (rop: mpq_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpq_sgn: (op: mpq_ptr) => c_int = ...

Type declaration

mpq_sub: (difference: mpq_ptr, minuend: mpq_srcptr, subtrahend: mpq_srcptr) => void = ...

Type declaration

mpq_swap: (rop1: mpq_ptr, rop2: mpq_ptr) => void = ...

Type declaration

mpq_t: () => mpq_ptr = ...

Type declaration

    • Allocates memory for the mpq_t C struct and returns pointer

      Returns mpq_ptr

mpq_t_free: (mpq_ptr: mpq_ptr) => void = ...

Type declaration

    • Deallocates memory of a mpq_t C struct

      Parameters

      Returns void

mpq_t_frees: (...ptrs: mpq_ptr[]) => void = ...

Type declaration

    • Deallocates memory of a NULL-terminated list of mpq_t variables

      Parameters

      Returns void

mpz_2fac_ui: (rop: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_abs: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_add: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_add_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => void = ...

Type declaration

mpz_addmul: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_addmul_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => void = ...

Type declaration

mpz_and: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_bin_ui: (rop: mpz_ptr, n: mpz_srcptr, k: c_unsigned_long_int) => void = ...

Type declaration

mpz_bin_uiui: (rop: mpz_ptr, n: c_unsigned_long_int, k: c_unsigned_long_int) => void = ...

Type declaration

mpz_cdiv_q: (q: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_cdiv_q_2exp: (q: mpz_ptr, n: mpz_srcptr, b: mp_bitcnt_t) => void = ...

Type declaration

mpz_cdiv_q_ui: (q: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_cdiv_qr: (q: mpz_ptr, r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_cdiv_qr_ui: (q: mpz_ptr, r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_cdiv_r: (r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_cdiv_r_2exp: (r: mpz_ptr, n: mpz_srcptr, b: mp_bitcnt_t) => void = ...

Type declaration

mpz_cdiv_r_ui: (r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_cdiv_ui: (n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_clear: (x: mpz_ptr) => void = ...

Type declaration

    • Free the space occupied by x.

      Parameters

      Returns void

mpz_clears: (...ptrs: mpz_ptr[]) => void = ...

Type declaration

    • Free the space occupied by a NULL-terminated list of mpz_t variables.

      Parameters

      Returns void

mpz_clrbit: (rop: mpz_ptr, bit_index: mp_bitcnt_t) => void = ...

Type declaration

mpz_cmp: (op1: mpz_srcptr, op2: mpz_srcptr) => c_int = ...

Type declaration

mpz_cmp_d: (op1: mpz_srcptr, op2: c_double) => c_int = ...

Type declaration

mpz_cmp_si: (op1: mpz_srcptr, op2: c_signed_long_int) => c_int = ...

Type declaration

mpz_cmp_ui: (op1: mpz_srcptr, op2: c_unsigned_long_int) => c_int = ...

Type declaration

mpz_cmpabs: (op1: mpz_srcptr, op2: mpz_srcptr) => c_int = ...

Type declaration

mpz_cmpabs_d: (op1: mpz_srcptr, op2: c_double) => c_int = ...

Type declaration

mpz_cmpabs_ui: (op1: mpz_srcptr, op2: c_unsigned_long_int) => c_int = ...

Type declaration

mpz_com: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_combit: (rop: mpz_ptr, bitIndex: mp_bitcnt_t) => void = ...

Type declaration

mpz_congruent_2exp_p: (n: mpz_srcptr, c: mpz_srcptr, b: mp_bitcnt_t) => c_int = ...

Type declaration

mpz_congruent_p: (n: mpz_srcptr, c: mpz_srcptr, d: mpz_srcptr) => c_int = ...

Type declaration

mpz_congruent_ui_p: (n: mpz_srcptr, c: c_unsigned_long_int, d: c_unsigned_long_int) => c_int = ...

Type declaration

mpz_divexact: (q: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_divexact_ui: (q: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => void = ...

Type declaration

mpz_divisible_2exp_p: (n: mpz_srcptr, b: mp_bitcnt_t) => c_int = ...

Type declaration

mpz_divisible_p: (n: mpz_srcptr, d: mpz_srcptr) => c_int = ...

Type declaration

mpz_divisible_ui_p: (n: mpz_srcptr, d: c_unsigned_long_int) => c_int = ...

Type declaration

mpz_even_p: (op: mpz_srcptr) => void = ...

Type declaration

mpz_export: (rop: c_void_ptr, countp: c_size_t_ptr, order: c_int, size: c_size_t, endian: c_int, nails: c_size_t, op: mpz_srcptr) => c_void_ptr = ...

Type declaration

mpz_fac_ui: (rop: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_fdiv_q: (q: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_fdiv_q_2exp: (q: mpz_ptr, n: mpz_srcptr, b: mp_bitcnt_t) => void = ...

Type declaration

mpz_fdiv_q_ui: (q: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_fdiv_qr: (q: mpz_ptr, r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_fdiv_qr_ui: (q: mpz_ptr, r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_fdiv_r: (r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_fdiv_r_2exp: (r: mpz_ptr, n: mpz_srcptr, b: mp_bitcnt_t) => void = ...

Type declaration

mpz_fdiv_r_ui: (r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_fdiv_ui: (n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_fib2_ui: (fn: mpz_ptr, fnsub1: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_fib_ui: (fn: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_fits_sint_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero iff the value of op fits in a signed 32-bit integer. Otherwise, return zero.

      Parameters

      Returns c_int

mpz_fits_slong_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero iff the value of op fits in a signed 32-bit integer. Otherwise, return zero.

      Parameters

      Returns c_int

mpz_fits_sshort_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero iff the value of op fits in a signed 16-bit integer. Otherwise, return zero.

      Parameters

      Returns c_int

mpz_fits_uint_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero iff the value of op fits in an unsigned 32-bit integer. Otherwise, return zero.

      Parameters

      Returns c_int

mpz_fits_ulong_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero iff the value of op fits in an unsigned 32-bit integer. Otherwise, return zero.

      Parameters

      Returns c_int

mpz_fits_ushort_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero iff the value of op fits in an unsigned 16-bit integer. Otherwise, return zero.

      Parameters

      Returns c_int

mpz_gcd: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_gcd_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_gcdext: (g: mpz_ptr, s: mpz_ptr, t: mpz_ptr, a: mpz_srcptr, b: mpz_srcptr) => void = ...

Type declaration

mpz_get_d: (op: mpz_srcptr) => c_double = ...

Type declaration

mpz_get_d_2exp: (exp: c_signed_long_int_ptr, op: mpz_srcptr) => c_double = ...

Type declaration

mpz_get_si: (op: mpz_srcptr) => c_signed_long_int = ...

Type declaration

mpz_get_str: (str: c_str_ptr, base: c_int, op: mpz_srcptr) => c_str_ptr = ...

Type declaration

mpz_get_ui: (op: mpz_srcptr) => c_unsigned_long_int = ...

Type declaration

mpz_getlimbn: (op: mpz_srcptr, n: mp_size_t) => mp_limb_t = ...

Type declaration

mpz_hamdist: (op1: mpz_srcptr, op2: mpz_srcptr) => mp_bitcnt_t = ...

Type declaration

mpz_import: (rop: mpz_ptr, count: c_size_t, order: c_int, size: c_size_t, endian: c_int, nails: c_size_t, op: c_void_ptr) => void = ...

Type declaration

mpz_init: (x: mpz_ptr) => void = ...

Type declaration

    • Initialize x, and set its value to 0.

      Parameters

      Returns void

mpz_init2: (x: mpz_ptr, n: mp_bitcnt_t) => void = ...

Type declaration

mpz_init_set: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_init_set_d: (rop: mpz_ptr, op: c_double) => void = ...

Type declaration

    • Initialize rop with limb space and set the initial numeric value from op.

      Parameters

      Returns void

mpz_init_set_si: (rop: mpz_ptr, op: c_signed_long_int) => void = ...

Type declaration

mpz_init_set_str: (rop: mpz_ptr, str: c_str_ptr, base: c_int) => c_int = ...

Type declaration

mpz_init_set_ui: (rop: mpz_ptr, op: c_unsigned_long_int) => void = ...

Type declaration

mpz_inits: (...ptrs: mpz_ptr[]) => void = ...

Type declaration

    • Initialize a NULL-terminated list of mpz_t variables, and set their values to 0.

      Parameters

      Returns void

mpz_invert: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => c_int = ...

Type declaration

mpz_ior: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_jacobi: (a: mpz_srcptr, b: mpz_srcptr) => c_int = ...

Type declaration

mpz_kronecker: (a: mpz_srcptr, b: mpz_srcptr) => c_int = ...

Type declaration

mpz_kronecker_si: (a: mpz_srcptr, b: c_signed_long_int) => c_int = ...

Type declaration

mpz_kronecker_ui: (a: mpz_srcptr, b: c_unsigned_long_int) => c_int = ...

Type declaration

mpz_lcm: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_lcm_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => void = ...

Type declaration

mpz_legendre: (a: mpz_srcptr, p: mpz_srcptr) => c_int = ...

Type declaration

mpz_limbs_finish: (x: mpz_ptr, s: mp_size_t) => void = ...

Type declaration

mpz_limbs_modify: (x: mpz_ptr, n: mp_size_t) => mp_ptr = ...

Type declaration

mpz_limbs_read: (x: mpz_srcptr) => mp_srcptr = ...

Type declaration

mpz_limbs_write: (x: mpz_ptr, n: mp_size_t) => mp_ptr = ...

Type declaration

mpz_lucnum2_ui: (ln: mpz_ptr, lnsub1: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_lucnum_ui: (ln: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_mfac_uiui: (rop: mpz_ptr, n: c_unsigned_long_int, m: c_unsigned_long_int) => void = ...

Type declaration

mpz_millerrabin: (n: mpz_srcptr, reps: c_int) => c_int = ...

Type declaration

mpz_mod: (r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_mod_ui: (r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => void = ...

Type declaration

mpz_mul: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_mul_2exp: (rop: mpz_ptr, op1: mpz_srcptr, op2: mp_bitcnt_t) => void = ...

Type declaration

mpz_mul_si: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_signed_long_int) => void = ...

Type declaration

mpz_mul_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => void = ...

Type declaration

mpz_neg: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_nextprime: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_odd_p: (op: mpz_srcptr) => void = ...

Type declaration

mpz_perfect_power_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero if op is a perfect power, i.e., if there exist integers a and b, with b > 1, such that op = a^b.

      Parameters

      Returns c_int

mpz_perfect_square_p: (op: mpz_srcptr) => c_int = ...

Type declaration

    • Return non-zero if op is a perfect square, i.e., if the square root of op is an integer.

      Parameters

      Returns c_int

mpz_popcount: (op: mpz_srcptr) => mp_bitcnt_t = ...

Type declaration

mpz_pow_ui: (rop: mpz_ptr, base: mpz_srcptr, exp: c_unsigned_long_int) => void = ...

Type declaration

mpz_powm: (rop: mpz_ptr, base: mpz_srcptr, exp: mpz_srcptr, mod: mpz_srcptr) => void = ...

Type declaration

mpz_powm_sec: (rop: mpz_ptr, base: mpz_srcptr, exp: mpz_srcptr, mod: mpz_srcptr) => void = ...

Type declaration

mpz_powm_ui: (rop: mpz_ptr, base: mpz_srcptr, exp: c_unsigned_long_int, mod: mpz_srcptr) => void = ...

Type declaration

mpz_primorial_ui: (rop: mpz_ptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_probab_prime_p: (n: mpz_srcptr, reps: c_int) => c_int = ...

Type declaration

mpz_random: (rop: mpz_ptr, maxSize: mp_size_t) => void = ...

Type declaration

mpz_random2: (rop: mpz_ptr, maxSize: mp_size_t) => void = ...

Type declaration

    • Generate a random integer of at most maxSize limbs, with long strings of zeros and ones in the binary representation.

      Parameters

      Returns void

mpz_realloc2: (x: mpz_ptr, n: mp_bitcnt_t) => void = ...

Type declaration

mpz_remove: (rop: mpz_ptr, op: mpz_srcptr, f: mpz_srcptr) => mp_bitcnt_t = ...

Type declaration

mpz_roinit_n: (x: mpz_ptr, xp: mp_srcptr, xs: mp_size_t) => mpz_srcptr = ...

Type declaration

mpz_root: (rop: mpz_ptr, op: mpz_srcptr, n: c_unsigned_long_int) => c_int = ...

Type declaration

mpz_rootrem: (root: mpz_ptr, rem: mpz_ptr, u: mpz_srcptr, n: c_unsigned_long_int) => void = ...

Type declaration

mpz_rrandomb: (rop: mpz_ptr, state: gmp_randstate_t, n: mp_bitcnt_t) => void = ...

Type declaration

mpz_scan0: (op: mpz_srcptr, startingBit: mp_bitcnt_t) => mp_bitcnt_t = ...

Type declaration

mpz_scan1: (op: mpz_srcptr, startingBit: mp_bitcnt_t) => mp_bitcnt_t = ...

Type declaration

mpz_set: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_set_d: (rop: mpz_ptr, op: c_double) => void = ...

Type declaration

mpz_set_q: (rop: mpz_ptr, op: mpq_srcptr) => void = ...

Type declaration

mpz_set_si: (rop: mpz_ptr, op: c_signed_long_int) => void = ...

Type declaration

mpz_set_str: (rop: mpz_ptr, str: c_str_ptr, base: c_int) => c_int = ...

Type declaration

mpz_set_ui: (rop: mpz_ptr, op: c_unsigned_long_int) => void = ...

Type declaration

mpz_setbit: (rop: mpz_ptr, bitIndex: mp_bitcnt_t) => void = ...

Type declaration

mpz_sgn: (op: mpz_ptr) => c_int = ...

Type declaration

mpz_si_kronecker: (a: c_signed_long_int, b: mpz_srcptr) => c_int = ...

Type declaration

mpz_size: (op: mpz_srcptr) => c_size_t = ...

Type declaration

mpz_sizeinbase: (op: mpz_srcptr, base: c_int) => c_size_t = ...

Type declaration

mpz_sqrt: (rop: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

mpz_sqrtrem: (rop1: mpz_ptr, rop2: mpz_ptr, op: mpz_srcptr) => void = ...

Type declaration

    • Set rop1 to the truncated integer part of the square root of op, like mpz_sqrt. Set rop2 to the remainder op - rop1 * rop1, which will be zero if op is a perfect square.

      Parameters

      Returns void

mpz_sub: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_sub_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => void = ...

Type declaration

mpz_submul: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

mpz_submul_ui: (rop: mpz_ptr, op1: mpz_srcptr, op2: c_unsigned_long_int) => void = ...

Type declaration

mpz_swap: (rop1: mpz_ptr, rop2: mpz_ptr) => void = ...

Type declaration

mpz_t: () => mpz_ptr = ...

Type declaration

    • Allocates memory for the mpfr_t C struct and returns pointer

      Returns mpz_ptr

mpz_t_free: (ptr: mpz_ptr) => void = ...

Type declaration

    • Deallocates memory of a mpfr_t C struct

      Parameters

      Returns void

mpz_t_frees: (...ptrs: mpz_ptr[]) => void = ...

Type declaration

    • Deallocates memory of a NULL-terminated list of mpfr_t variables

      Parameters

      Returns void

mpz_tdiv_q: (q: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_tdiv_q_2exp: (q: mpz_ptr, n: mpz_srcptr, b: mp_bitcnt_t) => void = ...

Type declaration

mpz_tdiv_q_ui: (q: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_tdiv_qr: (q: mpz_ptr, r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_tdiv_qr_ui: (q: mpz_ptr, r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_tdiv_r: (r: mpz_ptr, n: mpz_srcptr, d: mpz_srcptr) => void = ...

Type declaration

mpz_tdiv_r_2exp: (r: mpz_ptr, n: mpz_srcptr, b: mp_bitcnt_t) => void = ...

Type declaration

mpz_tdiv_r_ui: (r: mpz_ptr, n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_tdiv_ui: (n: mpz_srcptr, d: c_unsigned_long_int) => c_unsigned_long_int = ...

Type declaration

mpz_tstbit: (op: mpz_srcptr, bitIndex: mp_bitcnt_t) => c_int = ...

Type declaration

mpz_ui_kronecker: (a: c_unsigned_long_int, b: mpz_srcptr) => c_int = ...

Type declaration

mpz_ui_pow_ui: (rop: mpz_ptr, base: c_unsigned_long_int, exp: c_unsigned_long_int) => void = ...

Type declaration

mpz_ui_sub: (rop: mpz_ptr, op1: c_unsigned_long_int, op2: mpz_srcptr) => void = ...

Type declaration

mpz_urandomb: (rop: mpz_ptr, state: gmp_randstate_t, n: mp_bitcnt_t) => void = ...

Type declaration

mpz_urandomm: (rop: mpz_ptr, state: gmp_randstate_t, n: mpz_srcptr) => void = ...

Type declaration

mpz_xor: (rop: mpz_ptr, op1: mpz_srcptr, op2: mpz_srcptr) => void = ...

Type declaration

reset: () => Promise<void> = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Accessors

  • get mem(): Uint8Array
  • Returns Uint8Array

  • get memView(): DataView
  • Returns DataView

Methods

  • mpfr_init_set_string(mpfr: mpfr_t, input: string, base: number, rnd: mpfr_rnd_t): number
  • Initializes new MPFR float from JS string

    Parameters

    Returns number

  • mpfr_set_string(mpfr: mpfr_t, input: string, base: number, rnd: mpfr_rnd_t): number
  • Converts JS string into MPFR float

    Parameters

    Returns number

  • mpq_set_string(mpq: mpq_ptr, input: string, base: number): number
  • Converts JS string into MPQ rational

    Parameters

    • mpq: mpq_ptr
    • input: string
    • base: number

    Returns number

  • mpq_to_string(x: mpz_ptr, base: number): string
  • Converts MPQ rational into JS string

    Parameters

    Returns string

  • mpz_init_set_string(mpz: mpz_ptr, input: string, base: number): number
  • Initializes new MPFR float from JS string

    Parameters

    • mpz: mpz_ptr
    • input: string
    • base: number

    Returns number

  • mpz_set_string(mpz: mpz_ptr, input: string, base: number): number
  • Converts JS string into MPZ integer

    Parameters

    • mpz: mpz_ptr
    • input: string
    • base: number

    Returns number

  • mpz_to_string(x: mpz_ptr, base: number): string
  • Converts MPZ int into JS string

    Parameters

    Returns string

Generated using TypeDoc