Bill Allombert on Sat, 07 Jan 2023 10:32:39 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Solve an non-homogeneous system of equations mod Z.
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Solve an non-homogeneous system of equations mod Z.
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Sat, 7 Jan 2023 10:31:19 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1673083876; c=relaxed/relaxed; bh=aTrZ8QnZuVaw/JIuBDfhKOpc0D2dBIkIWLfqqM+9P5A=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=XX0FUFQ+lT+12OfQjc6ErsEUxD/A4Q+jICJ2B9aZuks/yi9GbM4pRlUVl1ddcYLd1s+4HprUPk2z8VdlmKvJzAMe/51uhpMBYH+g4VMdWBqEoPNnXKDATpGDn1o5r50Vh/dMQY3FasoyyTAOs6I5gCQZW5r4d1wU9wPzls5BrN498TJV7VtOBsgbusb9X8S31dJJnWipYlycrXttbpne5cR1eryMPBo3aQYtGM/bYW5VrUMKOeli7ULmvvZqouIlrH/uJsycDT01xoCQC51ik1pFN7AwHex1gV+DGvuvNfTXnZ8R362wljzTgZKGRhWgXLwijdyC9ZrlL9CQYMuBdo3kYVScdIIitKkfvmzWEr5tBl+qAkCsrlKAXuSQSB6cxvnb3X/sImgieVG89dJZn0YKx9f9LV2t8iXhShQdGmiLLa5jl+6J3daiRFuzmarJEZ4mMlDZhy8BlGnX2cF9RcsFnQmaMSjhXxrw1ifp3l51U6vt8JHroHi3Zy0AJEas01xCFgiWOv+KQdWJrm3zW7zLJreDkbpWXMhkKC8CBQ5/FgTX8isIH+Lm9Tkb+1x4Y8NdY1Jbv9RmZNF/MTqHlg+wKuVbZmKAUtn3YsR2xAnF2REbzxh5pSPDPL5Z6Wd1Hak5NqdGFhoHSvnIzMjGelkNDIisjqz3ylVeviiLPyM=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1673083876; cv=none; b=tNZZgLe5aYN/eJRo9z7B5lxTkvivDgTE4q+jxFDU0+u3xK8H5basgj8i736u1o+y8PrDCD4HlHgRYprZfOG7xH67bOSyLgBjK3nA0rTTXujW0VhsDb7CvQgRfAhGZ80vq0YTOiRcG7qOyMj0C4HRwPqMlOdG15abhLXeVjnT9b6i6PnXZJc/e2SMTNE4UbhOdIbcN3p4nCZdsXkGdRzt3EsTPrbtxbpMBOsm99NIHt+59fo5+IrJTd88PJtSpVu+mZ4/fVZ6hKP9RS7HZmjJJALLmJZ8G90DL9LqG95zh1hlFSW8diZVAIP499U6Iyw8I5yzmx41nZX3fgYXMz0dCRmHVVcXCTYO/xM3sipg0dx78k+ekFjFBLyiSfSHSOKnmN6F5uMwVNs7aORgB1evT990XtMII7bRcQgNh0Ki6ZxEtOQPq2tbXnJC7wn8cCrb1nENVRE1uMIE0fcs0qwYpF4WDbduvCPutVki3I5V93VpMjMaFFfCgT6ylhAJ5qbGaN4MsqTpJYQrP+zF7xmOZ9JH9SIRv+gGbyeI3AGRRH2hNbSJ0HWWORFleCKuERY86kU1ntjhqcFcOsqT6W6qU8z4o4yBWtDcZmSx//u7JbIgsTo/kSDMFHsUCyRtzZJ8tOWMBQtxBElsA4e0wCSSCNHSGBEpO02ACVC7DqytKdE=
- Authentication-results: smail; arc=none
- Delivery-date: Sat, 07 Jan 2023 10:32:39 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1673083876; bh=aTrZ8QnZuVaw/JIuBDfhKOpc0D2dBIkIWLfqqM+9P5A=; h=Date:From:To:Subject:References:In-Reply-To:From; b=NX4YNrlOsGZJ69ZVnSyvvCQkmT/9Es6uwtIdVfPXK+DA3jvJANz13Wx1cO2aNvDnX d2YZzVPzKxcdDsPEYn87Vw3JObq2i/oPhiNcjO8d1YbK2No52eM2dXP0vaHDwDwGKG /AOAgtQsgpREW802appmdEy8XOJUnDxcPiTKd/xf9noEip2QX312la+Q358ANhsOCc b02BJ694rIuxrLWon1G3mIwIvUW3CeP5HhtiZwz2Xy8mBIheFq5I4zOjai/J9x5II8 0uPRjh7P7EMd3ZWpG3GcbwA0eL7Ty9hk5OolVjDHr7M4PLAMRpk5CnM1djYxENQ0eO o+f8kLmJHKFDwfrLBOUKtqE3yrgLwEWwAt/galyxRsIW3x8HZbEv8OW5IO+ZQDcEjA ejxc4ru6KLYCw1tGswbxekuN1eRnMcwVGM037W4H3JSBWvOIvB4dxvoOIvRi5uUNMe JTmT5wCJ4H7qAZLkBWablpzL6+2/JUEI54ZhjOYcbnNzMmysU+EKqtb2QpIO2QSrKg wXtCYOG3I4auYDj+fpHkuLSCvS0nO4/lsg7SJ2FUNP6Lp3HUucyf63EPabgEBasRJz 5aQUHTuIleRz+iQ4cBYyV0C9G6S1BydFW+OawoReE83r/sO18XII7Qoz4RQrREybYU 428GGm6v7Gl41xNWOelkQUXE=
- In-reply-to: <CAGP6PO+a8=MewcWM=qML=TMyy5NNkn=HCwQDqoLV_56JP1He9g@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAGP6POLaF0wGKK_+4oxr_=P7sjORmDvdx=zCwyoWpD-gQ8jGaQ@mail.gmail.com> <Y7Gp2fNv8ecvtWeT@seventeen> <CAGP6POLYCssCjSL3FVgKu3nqLKUg+QpXann0g1mpmj9WsH=NWw@mail.gmail.com> <Y7XtLFSpO8aMt48s@seventeen> <CAGP6POLNF7tz5U-Djrz78KhTAhupqReyd+PfHpuhUwkVkWjHrQ@mail.gmail.com> <CAGP6POLJAOGhK2qdsyBpW1+hrQOTw-DgFQNWA=_cNYw36chtPA@mail.gmail.com> <CAMLkfFQTLa_7jh-5qcOov=-KmmUo86R5RqJ9d-WRwOFug+3aww@mail.gmail.com> <CAGP6PO+64ozJ7-cbk2eR1XAtQdxGFYv=pGzFx1OKqRThP7i0zQ@mail.gmail.com> <82f611b1-0c50-2eaf-5894-d0d6994e511a@normalesup.org> <CAGP6PO+a8=MewcWM=qML=TMyy5NNkn=HCwQDqoLV_56JP1He9g@mail.gmail.com>
On Sat, Jan 07, 2023 at 09:14:04AM +0800, Hongyi Zhao wrote:
>
> I tried the following method, but failed:
>
> ? mat1 = [ -210, -210, -220; -221, -222, -232; 410, 411, 430 ]
> %1 =
> [-210 -210 -220]
>
> [-221 -222 -232]
>
> [ 410 411 430]
>
> ? vec1 = [ -27, -28, 105/2 ]~
> %2 = [-27, -28, 105/2]~
> ? matsolvemod(mat1,[1,1,1]~, 2 * vec1~,1)
> *** at top-level: matsolvemod(mat1,[1,1,1]~,2*vec1~,1)
> *** ^------------------------------------
> *** matsolvemod: incorrect type in matsolvemod (Y) (t_VEC).
There are three issues:
1/ The error is that you applied ~ to vec1.
2/ You need to multiply everything by 2 to compensate, not just vec1.
3/ matsolvemod looks for integral solutions. Obviously there are none,
so you will get the empty set.
One possible solution
Take w = [0,0,1/4]~
then mat1*w-vec1 = [-28,-30,55]~ is integral
? matsolvemod(mat1,1,mat1*w-vec1,1)
%20 = [[0,0,0]~,[1,0,0;0,1,0;0,0,1]]
so the set of solution is w + Z^3
Cheers,
Bill