MathTop

sqrt_mod 函数

返回 a 关于模 m 的所有平方根。

语法

  • sqrt_mod(a, m)
  • sqrtmod(a, m)

参数与选项

a整数余数。
m正模数。

示例

  1. 模平方根sqrt_mod(10, 13)返回 [6, 7]。