inhomogeneous_diophantine 函数
返回二元线性丢番图方程的一个较小整数特解。
语法
InhomogeneousDiophantine([a, b], c)inhomogeneous_diophantine([a, b], c)
参数与选项
a, b | 方程 a*x + b*y = c 中的整数系数。 |
|---|---|
c | 整数目标值。 |
示例
- 特解
InhomogeneousDiophantine([6, 10], 14)返回 [-1, 2]。
返回二元线性丢番图方程的一个较小整数特解。
InhomogeneousDiophantine([a, b], c)inhomogeneous_diophantine([a, b], c)a, b | 方程 a*x + b*y = c 中的整数系数。 |
|---|---|
c | 整数目标值。 |
InhomogeneousDiophantine([6, 10], 14)返回 [-1, 2]。