⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpfr.h

📁 CGAL is a collaborative effort of several sites in Europe and Israel. The goal is to make the most i
💻 H
📖 第 1 页 / 共 2 页
字号:
__MPFR_DECLSPEC double mpfr_get_d_2exp _PROTO ((long *, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC long mpfr_get_si _PROTO ((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC unsigned long mpfr_get_ui _PROTO ((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_set_f _PROTO ((mpfr_ptr, mpf_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_set_si _PROTO ((mpfr_ptr, long, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_set_ui _PROTO ((mpfr_ptr, unsigned long, mp_rnd_t));
__MPFR_DECLSPEC void mpfr_random _PROTO ((mpfr_ptr));
__MPFR_DECLSPEC void mpfr_random2 _PROTO ((mpfr_ptr, mp_size_t, mp_exp_t));
__MPFR_DECLSPEC int mpfr_urandomb _PROTO ((mpfr_ptr, gmp_randstate_t));
__MPFR_DECLSPEC void mpfr_clear _PROTO ((mpfr_ptr));
__MPFR_DECLSPEC void mpfr_nextabove _PROTO ((mpfr_ptr));
__MPFR_DECLSPEC void mpfr_nextbelow _PROTO ((mpfr_ptr));
__MPFR_DECLSPEC void mpfr_nexttoward _PROTO ((mpfr_ptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_set_str _PROTO ((mpfr_ptr, __gmp_const char *, int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_init_set_str _PROTO ((mpfr_ptr, __gmp_const char *, int, mp_rnd_t));
__MPFR_DECLSPEC char* mpfr_get_str _PROTO ((char *, mp_exp_t *, int, size_t, mpfr_srcptr, mp_rnd_t));

#ifdef _MPFR_H_HAVE_FILE
__MPFR_DECLSPEC size_t mpfr_inp_str _PROTO ((mpfr_ptr, FILE *, int, mp_rnd_t));
__MPFR_DECLSPEC size_t mpfr_out_str _PROTO ((FILE *, int, size_t, mpfr_srcptr, mp_rnd_t));
#endif

__MPFR_DECLSPEC int mpfr_mul _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_pow_ui _PROTO ((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_ui_pow_ui _PROTO ((mpfr_ptr, unsigned long int, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_agm _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sqrt _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sqrt_ui _PROTO ((mpfr_ptr, unsigned long, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_add _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_add_ui _PROTO ((mpfr_ptr, mpfr_srcptr, unsigned long, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sub_ui _PROTO ((mpfr_ptr, mpfr_srcptr, unsigned long, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_add_one_ulp _PROTO ((mpfr_ptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sub _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_ui_sub _PROTO ((mpfr_ptr, unsigned long, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC void mpfr_reldiff _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_const_pi _PROTO ((mpfr_ptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_const_log2 _PROTO ((mpfr_ptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_const_euler _PROTO ((mpfr_ptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_log _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_exp _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_exp2 _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sin _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sin_cos _PROTO ((mpfr_ptr, mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_cos _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_tan _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_mul_ui _PROTO((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_cmp_ui_2exp _PROTO ((mpfr_srcptr, unsigned long int, mp_exp_t));
__MPFR_DECLSPEC int mpfr_cmp_si_2exp _PROTO ((mpfr_srcptr, long int, mp_exp_t));
__MPFR_DECLSPEC int mpfr_mul_2exp _PROTO((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div_2exp _PROTO((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_mul_2ui _PROTO((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div_2ui _PROTO((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_mul_2si _PROTO((mpfr_ptr, mpfr_srcptr, long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div_2si _PROTO((mpfr_ptr, mpfr_srcptr, long int, mp_rnd_t));
__MPFR_DECLSPEC void mpfr_set_prec _PROTO((mpfr_ptr, mp_prec_t));
__MPFR_DECLSPEC void mpfr_set_prec_raw _PROTO((mpfr_ptr, mp_prec_t));
__MPFR_DECLSPEC void mpfr_set_default_prec _PROTO((mp_prec_t));
__MPFR_DECLSPEC mp_prec_t mpfr_get_default_prec _PROTO((void));
__MPFR_DECLSPEC extern mp_prec_t __gmpfr_default_fp_bit_precision;
__MPFR_DECLSPEC extern mp_rnd_t __gmpfr_default_rounding_mode;
__MPFR_DECLSPEC __gmp_const char * mpfr_print_rnd_mode _PROTO((mp_rnd_t));
__MPFR_DECLSPEC int mpfr_neg _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sub_one_ulp _PROTO((mpfr_ptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div_ui _PROTO((mpfr_ptr, mpfr_srcptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_ui_div _PROTO((mpfr_ptr, unsigned long int, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC mp_prec_t mpfr_get_prec _PROTO((mpfr_srcptr));
__MPFR_DECLSPEC void mpfr_set_default_rounding_mode _PROTO((mp_rnd_t));
__MPFR_DECLSPEC int mpfr_eq _PROTO((mpfr_srcptr, mpfr_srcptr, unsigned long));
__MPFR_DECLSPEC int mpfr_rint _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_round _PROTO((mpfr_ptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_trunc _PROTO((mpfr_ptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_ceil _PROTO((mpfr_ptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_floor _PROTO((mpfr_ptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_frac _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fits_ulong_p _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fits_slong_p _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fits_uint_p _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fits_sint_p _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fits_ushort_p _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fits_sshort_p _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC void mpfr_extract _PROTO((mpz_ptr, mpfr_srcptr, unsigned int));
__MPFR_DECLSPEC void mpfr_swap _PROTO((mpfr_ptr, mpfr_ptr));
__MPFR_DECLSPEC void mpfr_dump _PROTO((mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_set4 _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t, int));
__MPFR_DECLSPEC int mpfr_cmp3 _PROTO ((mpfr_srcptr, mpfr_srcptr, int));
__MPFR_DECLSPEC int mpfr_cmp_d _PROTO ((mpfr_srcptr, double));
__MPFR_DECLSPEC int mpfr_cmpabs _PROTO ((mpfr_srcptr, mpfr_srcptr));

#define mpfr_cmp_abs mpfr_cmpabs /* keep for compatibility with mpfr-2.0.1 */

__MPFR_DECLSPEC int mpfr_nan_p _PROTO((mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_inf_p _PROTO((mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_number_p _PROTO((mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_acos _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_asin _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_atan _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_erf _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_sinh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_tanh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_factorial _PROTO ((mpfr_ptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_ui_pow _PROTO ((mpfr_ptr, unsigned long int, mpfr_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_atanh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_acosh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_asinh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_cosh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sinh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_tanh _PROTO((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_asin _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_atan _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fac_ui _PROTO ((mpfr_ptr, unsigned long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_fma _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_hypot _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_pow _PROTO ((mpfr_ptr, mpfr_srcptr,mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_pow_si _PROTO ((mpfr_ptr, mpfr_srcptr, long int, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_integer_p _PROTO ((mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_log2 _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_log10 _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_log1p _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_expm1 _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_cbrt _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_gamma _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_zeta _PROTO ((mpfr_ptr, mpfr_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_min _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_max _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_dim _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_copysign _PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_mul_z _PROTO ((mpfr_ptr, mpfr_srcptr, mpz_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div_z _PROTO ((mpfr_ptr, mpfr_srcptr, mpz_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_add_z _PROTO ((mpfr_ptr, mpfr_srcptr, mpz_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sub_z _PROTO ((mpfr_ptr, mpfr_srcptr, mpz_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_mul_q _PROTO ((mpfr_ptr, mpfr_srcptr, mpq_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_div_q _PROTO ((mpfr_ptr, mpfr_srcptr, mpq_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_add_q _PROTO ((mpfr_ptr, mpfr_srcptr, mpq_srcptr, mp_rnd_t));
__MPFR_DECLSPEC int mpfr_sub_q _PROTO ((mpfr_ptr, mpfr_srcptr, mpq_srcptr, mp_rnd_t));

__MPFR_DECLSPEC int mpfr_greater_p _PROTO ((mpfr_srcptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_greaterequal_p _PROTO ((mpfr_srcptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_less_p _PROTO ((mpfr_srcptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_lessequal_p _PROTO ((mpfr_srcptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_lessgreater_p _PROTO ((mpfr_srcptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_equal_p _PROTO ((mpfr_srcptr, mpfr_srcptr));
__MPFR_DECLSPEC int mpfr_unordered_p _PROTO ((mpfr_srcptr, mpfr_srcptr));

#if defined (__cplusplus)
}
#endif

/* prevent from using mpfr_get_e{min,max} as lvalues */
#define mpfr_get_emin() (__gmpfr_emin + 0)
#define mpfr_get_emax() (__gmpfr_emax + 0)

#define mpfr_clear_flags() \
  ((void) (__gmpfr_flags = 0))
#define mpfr_clear_underflow() \
  ((void) (__gmpfr_flags &= MPFR_FLAGS_ALL ^ MPFR_FLAGS_UNDERFLOW))
#define mpfr_clear_overflow() \
  ((void) (__gmpfr_flags &= MPFR_FLAGS_ALL ^ MPFR_FLAGS_OVERFLOW))
#define mpfr_clear_nanflag() \
  ((void) (__gmpfr_flags &= MPFR_FLAGS_ALL ^ MPFR_FLAGS_NAN))
#define mpfr_clear_inexflag() \
  ((void) (__gmpfr_flags &= MPFR_FLAGS_ALL ^ MPFR_FLAGS_INEXACT))
#define mpfr_underflow_p() \
  ((int) (__gmpfr_flags & MPFR_FLAGS_UNDERFLOW))
#define mpfr_overflow_p() \
  ((int) (__gmpfr_flags & MPFR_FLAGS_OVERFLOW))
#define mpfr_nanflag_p() \
  ((int) (__gmpfr_flags & MPFR_FLAGS_NAN))
#define mpfr_inexflag_p() \
  ((int) (__gmpfr_flags & MPFR_FLAGS_INEXACT))

#define mpfr_round(a,b) mpfr_rint((a), (b), -1)
#define mpfr_trunc(a,b) mpfr_rint((a), (b), GMP_RNDZ)
#define mpfr_ceil(a,b)  mpfr_rint((a), (b), GMP_RNDU)
#define mpfr_floor(a,b) mpfr_rint((a), (b), GMP_RNDD)

#define mpfr_cmp_ui(b,i) mpfr_cmp_ui_2exp((b),(i),0)
#define mpfr_cmp_si(b,i) mpfr_cmp_si_2exp((b),(i),0)
#define mpfr_set(a,b,r) mpfr_set4(a,b,r,MPFR_SIGN(b))
#define mpfr_abs(a,b,r) mpfr_set4(a,b,r,1)
#define mpfr_cmp(b, c) mpfr_cmp3(b, c, 1)
#define mpfr_sgn(x) mpfr_cmp_ui(x,0)
#define mpfr_mul_2exp(y,x,n,r) mpfr_mul_2ui((y),(x),(n),(r))
#define mpfr_div_2exp(y,x,n,r) mpfr_div_2ui((y),(x),(n),(r))

#define mpfr_init_set_si(x, i, rnd) \
 ( mpfr_init(x), mpfr_set_si((x), (i), (rnd)) )
#define mpfr_init_set_ui(x, i, rnd) \
 ( mpfr_init(x), mpfr_set_ui((x), (i), (rnd)) )
#define mpfr_init_set_d(x, d, rnd) \
 ( mpfr_init(x), mpfr_set_d((x), (d), (rnd)) )
#define mpfr_init_set_z(x, i, rnd) \
 ( mpfr_init(x), mpfr_set_z((x), (i), (rnd)) )
#define mpfr_init_set_q(x, i, rnd) \
 ( mpfr_init(x), mpfr_set_q((x), (i), (rnd)) )
#define mpfr_init_set(x, y, rnd) \
 ( mpfr_init(x), mpfr_set((x), (y), (rnd)) )
#define mpfr_init_set_f(x, y, rnd) \
 ( mpfr_init(x), mpfr_set_f((x), (y), (rnd)) )

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -