Re: linear Diophantine Equation

Karim Belabas <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
* 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.

Cheers,

    K.B.

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]
`
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.