MathTop

phi 函数

计算欧拉 φ 函数。

语法

  • NumberTheory:-EulerPhi(n)
  • phi(n)
  • Totient(n)
  • EulerPhi(n)
  • varphi(n)

参数与选项

n正整数。

示例

  1. 欧拉函数phi(36)返回 12。
  2. 其他名称varphi(36)返回 12。