MathTop

homogeneous_diophantine 函数

返回二元齐次线性整数方程解空间的一个基向量。

语法

  • HomogeneousDiophantine([a, b])
  • homogeneous_diophantine([a, b])

参数与选项

a, b方程 a*x + b*y = 0 中的整数系数。

示例

  1. 齐次方程解HomogeneousDiophantine([6, 10])返回 [5, -3]。