mpmath の API リファレンス
mpmath (mpmath/mpmath) の公開 API 75 件 —— クラス 14、関数 59、メソッド 2。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: mpmath/mpmath
| 種別 | 件数 |
|---|---|
| クラス | 14 |
| 関数 | 59 |
| メソッド | 2 |
API 一覧
class
mpmath.__main__.MpmathConsoleAn interactive console with readline support.
class
mpmath.calculus.optimization.Bisection1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Brent1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Halley1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Illinois1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.MNewton1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.ModAB1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Muller1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Newton1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Ridder1d-solver generating pairs of approximative root and error.
class
mpmath.calculus.optimization.Secant1d-solver generating pairs of approximative root and error.
class
mpmath.ctx_iv.ivmpfInterval arithmetic class.
class
mpmath.ctx_mp.MPContextContext for multiple precision floatng-point arithmetic.
method
mpmath.ctx_mp.MPContext.isnpint(x)Determine if *x* is a nonpositive integer.
method
mpmath.ctx_mp.MPContext.ldexp(x, n)Computes `x 2^n` efficiently.
class
mpmath.ctx_mp_python.mpnumericBase class for mpf and mpc.
func
mpmath.functions.bessel.j0(ctx, x)Computes the Bessel function `J_0(x)`.
func
mpmath.functions.bessel.j1(ctx, x)Computes the Bessel function `J_1(x)`.
func
mpmath.functions.qfunctions.qfac(ctx, z, q, *maxterms=None)Evaluates the q-factorial, ..
func
mpmath.functions.qfunctions.qgamma(ctx, z, q, *maxterms=None)Evaluates the q-gamma function ..
func
mpmath.functions.rszeta.z_half(ctx, t, der=0)z_half(t,der=0) Computes Z^(der)(t)
func
mpmath.functions.rszeta.zeta_offline(ctx, s, k=0)Computes zeta^(k)(s) off the line
func
mpmath.functions.zetazeros.search_supergood_block(ctx, n, fp_tolerance)To use for n>400 000 000
func
mpmath.functions.zetazeros.wpzeros(t)Precision needed to compute higher zeros
func
mpmath.libfp.zeta(s, **kwargs)Riemann zeta function, real argument
func
mpmath.libmp.gammazeta.zeta_array(N, prec)zeta(n) = A * pi**n / n!
func
mpmath.libmp.libelefun.e_fixed(prec)Computes exp(1).
func
mpmath.libmp.libelefun.exp_basecase(x, prec)Compute exp(x) as a fixed-point number.
func
mpmath.libmp.libelefun.exp_expneg_basecase(x, prec)Computation of exp(x), exp(-x)
func
mpmath.libmp.libelefun.exponential_series(x, prec, type=0)Taylor series for cosh/sinh or cos/sin.
func
mpmath.libmp.libelefun.ln10_fixed(prec)Computes ln(10).
func
mpmath.libmp.libelefun.ln2_fixed(prec)Computes ln(2).
func
mpmath.libmp.libelefun.log_taylor(x, prec, r=0)Fixed-point calculation of log(x).
func
mpmath.libmp.libelefun.mpf_cbrt(s, prec, rnd=round_down)cubic root of a positive number
func
mpmath.libmp.libelefun.mpf_log1p(x, prec, rnd=round_down)Computes log(1+x) accurately.
func
mpmath.libmp.libelefun.mpf_pow(s, t, prec, rnd=round_down)Compute s**t.
func
mpmath.libmp.libelefun.phi_fixed(prec)Computes the golden ratio, (1+sqrt(5))/2
func
mpmath.libmp.libhyper.mpc_agm(a, b, prec, rnd=round_down)Complex AGM.
func
mpmath.libmp.libhyper.mpf_ci_si_taylor(x, wp, which=0)0 - Ci(x) - (euler+log(x)) 1 - Si(x)
func
mpmath.libmp.libintmath.ifac2(n, memo_pair=[{0: 1}, {1: 1}])Return n!!
func
mpmath.libmp.libintmath.isprime(n)Determines whether n is a prime number.
func
mpmath.libmp.libintmath.jacobi_symbol(m, n)Returns the Jacobi symbol (m / n).
func
mpmath.libmp.libintmath.lshift(x, n)For an integer x, calculate x << n.
func
mpmath.libmp.libintmath.stirling1(n, k)Stirling number of the first kind.
func
mpmath.libmp.libintmath.stirling2(n, k)Stirling number of the second kind.
func
mpmath.libmp.libintmath.trailing(n)Count the number of trailing zero bits in abs(n).
func
mpmath.libmp.libmpc.mpc_arg(z, prec, rnd=round_down)Argument of a complex number.
func
mpmath.libmp.libmpc.mpc_cbrt(z, prec, rnd=round_down)Complex cubic root.
func
mpmath.libmp.libmpc.mpc_cos(z, prec, rnd=round_down)Complex cosine.
func
mpmath.libmp.libmpc.mpc_cosh(z, prec, rnd=round_down)Complex hyperbolic cosine.
func
mpmath.libmp.libmpc.mpc_div_mpf(z, p, prec, rnd=round_down)Calculate z/p where p is real
func
mpmath.libmp.libmpc.mpc_exp(z, prec, rnd=round_down)Complex exponential function.
func
mpmath.libmp.libmpc.mpc_mul(z, w, prec, rnd=round_down)Complex multiplication.
func
mpmath.libmp.libmpc.mpc_nthroot(z, n, prec, rnd=round_down)Complex n-th root.
func
mpmath.libmp.libmpc.mpc_reciprocal(z, prec, rnd=round_down)Calculate 1/z efficiently
func
mpmath.libmp.libmpc.mpc_sin(z, prec, rnd=round_down)Complex sine.
func
mpmath.libmp.libmpc.mpc_sinh(z, prec, rnd=round_down)Complex hyperbolic sine.
func
mpmath.libmp.libmpc.mpc_sqrt(z, prec, rnd=round_down)Complex square root (principal branch).
func
mpmath.libmp.libmpc.mpc_tan(z, prec, rnd=round_down)Complex tangent.
func
mpmath.libmp.libmpc.mpc_tanh(z, prec, rnd=round_down)Complex hyperbolic tangent.
func
mpmath.libmp.libmpf.from_int(n, prec=0, rnd=round_down)Create a raw mpf from an integer.
func
mpmath.libmp.libmpf.from_man_exp(man, exp, prec=0, rnd=round_down)Create raw mpf from (man, exp) pair.
func
mpmath.libmp.libmpf.gmpy_mpf_mul_int(s, n, prec, rnd=round_down)Multiply by a Python integer.
func
mpmath.libmp.libmpf.mpf_add(s, t, prec=0, rnd=round_down, _sub=0)Add the two raw mpf values s and t.
func
mpmath.libmp.libmpf.mpf_cmp(s, t)Compare the raw mpfs s and t.
func
mpmath.libmp.libmpf.mpf_div(s, t, prec, rnd=round_down)Floating-point division
func
mpmath.libmp.libmpf.mpf_eq(s, t)Test equality of two raw mpfs.
func
mpmath.libmp.libmpf.mpf_mul(s, t, prec=0, rnd=round_down)Multiply two raw mpfs
func
mpmath.libmp.libmpf.mpf_sub(s, t, prec=0, rnd=round_down)Return the difference of two raw mpfs, s-t.
func
mpmath.libmp.libmpf.python_mpf_mul_int(s, n, prec, rnd=round_down)Multiply by a Python integer.
func
mpmath.libmp.libmpf.str_to_man_exp(x, base=10)Helper function for from_str.
func
mpmath.libmp.libmpf.to_float(s, strict=False, rnd=round_down)Convert a raw mpf to a Python float.
func
mpmath.libmp.libmpf.to_int(s, rnd=round_down)Convert a raw mpf to the nearest int.
func
mpmath.libmp.libmpf.to_man_exp(s, signed=True)Return (man, exp) of a raw mpf.
func
mpmath.libmp.libmpf.to_rational(s)Convert a raw mpf to a rational number.
この情報について
掲載しているシグネチャは mpmath/mpmath の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。