Dirk Laurie on Fri, 20 May 2016 14:28:59 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: What am I doing wrong?
|
- To: "pari-users@pari.math.u-bordeaux.fr" <pari-users@pari.math.u-bordeaux.fr>
- Subject: Re: What am I doing wrong?
- From: Dirk Laurie <dirk.laurie@gmail.com>
- Date: Fri, 20 May 2016 14:28:51 +0200
- Delivery-date: Fri, 20 May 2016 14:29:00 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=8Dp40uSeaNwSY6Y7Tj9Q12AbdC6Mu67GjOX9sGSPT3Q=; b=bVLO6uY+QV2TvgROMyQWRVYnnyE4uxm1Nr+TWAL7aSecOmrd2hcnsF+IBp50HYyWlD 67Vk6N9lw9/S3POnKUXHgYVpJUK+lYlHcAF0t4H+hW5zS87aXYk0hO9pCdBF+vv7+/F9 jk91kkNhm0K/6WZVJb6TqKAR2PAZTurR56FdC0a4YqqjFjaPquS62obMYB4V5Uj1UaY4 trWTYiW/BXQDzpmJSJUxZMSqOoVNKCUj2joIfbwn+ZEIxEEgDy20hOrG51PhFzoTDuOZ xEVpXg5K41BU5tiQsmdFOov45D9vH8zIUrK2NALWIq7itngI3o5UuCD4q6GX9pZpRem/ mjyw==
- In-reply-to: <20160520122113.GH6703@yellowpig>
- References: <CABcj=tm74Ohc7f6yBTOJQA+diFOHnbt8PN8_oHS8ViW9q-q_+g@mail.gmail.com> <20160520122113.GH6703@yellowpig>
2016-05-20 14:21 GMT+02:00 Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
> On Fri, May 20, 2016 at 01:59:14PM +0200, Dirk Laurie wrote:
>> % qfbsolve(Qfb(1,0,-5),4)
>> %2 = 0
>>
>> Why are the solutions x=3,y=1; x=7,y=3; x=18,y=8; etc not found?
>
> Because 4 is not prime:
>
> ? ?qfbsolve
> qfbsolve(Q,p): Return [x,y] so that Q(x,y)=p where Q is a binary
> quadratic form and p a prime
> number, or 0 if there is no solution.
Follow-up question: can Pari handle equations like x^2 - 5*y^2 = 4
directly, or must I write the code exploiting Diophantine approximation
of sqrt(5) by hand?