0

Is there a module in Sage to solve 2 unknowns in diophantine equations? For instance, ax+by=c where a,b,c are known

I tried basic extended euclidean algorithm but my numbers are too large.

Stefan
  • 11
  • 1
  • 6

1 Answers1

0

Two ways of solving diophantine equations in Sage are

  • using the Smith normal form of matrices over ZZ
  • using polytopes

See the answers to these two Ask Sage questions:

Samuel Lelièvre
  • 3,212
  • 1
  • 14
  • 27