cp_
library_
rs
0.3.19
Module ext_
euclid
Module Items
Functions
In cp_
library_
rs::
number_
theory
cp_library_rs
::
number_theory
Module
ext_euclid
Copy item path
Source
Expand description
拡張ユークリッド互除法
Functions
§
ext_gcd
拡張ユークリッド互除法により, $
ax + by = \gcd(a, b)
$ を満たす $
(x, y, \gcd(a,b))
$ を求める.
inv
拡張ユークリッド互除法によりモジュラ逆元を計算する.