MathTop

inhomogeneous_diophantine 函数

返回二元线性丢番图方程的一个较小整数特解。

语法

  • InhomogeneousDiophantine([a, b], c)
  • inhomogeneous_diophantine([a, b], c)

参数与选项

a, b方程 a*x + b*y = c 中的整数系数。
c整数目标值。

示例

  1. 特解InhomogeneousDiophantine([6, 10], 14)返回 [-1, 2]。