Karim Belabas on Mon, 24 Jun 2019 09:06:08 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: linear Diophantine Equation

* Anneke [2019-06-24 00:48]:
> I just started to use PARI/GP and managed to get along quite well so far
> (thanks to the helpful ref-Cards), but now I came to a point, where I need
> to solve a linear Diophantine equation of the form
> a_1x_1+ a_2x_2 +a_3x_3+ ...+a_kx_k = c
> and I wonder, how to best approach this. I appreciate any help!

Hi Anneke,

  you don't give enough details but, assuming that the (a_i) are integral
and the (x_i) are unknown integers, have a look at ??matsolvemod.
If your problem involves a mix of integer and rational variables/data,
see ??matrixqz.



P.S. Please direct this kind of questions (beginner help) to pari-users
rather than pari-dev, which centers on the development of the system
(bug reports, patches and suggestions) and technical questions.
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 21 23
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]