Module math

Source
Expand description

数学

Modules§

bell_number
ベル数$B_0, \dots, B_n$を列挙する。
bell_number_table
ベル数$B(0, 0), \dots, B(n, n)$
berlekamp_massey
線形漸化式を求める。
bernoulli_number
ベルヌーイ数$B_0, \dots, B_n$を列挙する。
binomial_coefficient
二項係数
closed_interval
閉区間
continued_fraction
連分数展開
convolution
畳み込み
count_coprime
互いに素な数を数える。
crt
中国剰余定理
divisor
約数列挙
enumerate_quotients
ext_gcd
拡張ユークリッドの互除法
factorial
階乗
factorial_prime_factor
a!の素因数pの個数を求める。
factorize
素因数分解
fps
Formal Power Series
garner
Garner’s algorithm
gcd_lcm
最大公約数・最小公倍数
kth_root
Kth root
linear
$y = ax + b$の直線
linear_congruence
一次合同方程式を解く。
mod_ops
mod mでの演算
montmort
完全順列の個数を列挙する。
multipoint_eval
多項式の多点評価
nim_product
Nimber product
ntt
数論変換 (Number Theoretic Transform)
number_of_subset_sum
$\#_p$ Subset sum
partition_number
分割数$p(0), \dots, p(n)$を列挙する。
polynomial
$\mathbb{F}_p$上の多項式
polynomial_taylor_shift
多項式$f(x)$に対して、$f(x + c)$の係数を求める。
prime_test
素数判定
primitive_root
原始根
stern_brocot
Stern-Brocot木
stirling_first
符号付き第一種スターリング数$s(n, 0), \dots, s(n, n)$を列挙する。
stirling_first_table
符号付き第一種スターリング数$s(0,0), \dots, s(n,n)$を列挙する。
stirling_second
第二種スターリング数$S(n, 0), \dots, S(n, n)$を列挙する。
stirling_second_table
第二種スターリング数$S(0,0), \dots, S(n,n)$を列挙する。
sum_floor_linear
$\sum_{i=0}^{n-1} \lfloor \frac{ai+b}{m} \rfloor$
sum_of_exponential_times_polynomial_limit
$\sum_{i=0}^{\infty} r^ii^d$
tetration
$a \uparrow \uparrow b \pmod m$
totient
トーシェント関数
totient_sum
トーシェント関数の総和