Max Alekseyev on Thu, 24 May 2012 11:05:32 +0200

 core of a negative ineteger

• To: pari-users@pari.math.u-bordeaux.fr
• Subject: core of a negative ineteger
• From: Max Alekseyev <maxale@gmail.com>
• Date: Thu, 24 May 2012 13:05:25 +0400
• Delivery-date: Thu, 24 May 2012 11:05:38 +0200
• Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nToE1xfNi2BghCpqcA5a+hu+1abEcz+A+5HwY5/oilI=; b=x2fZTsHMoO2JsSc9cyvDIa9BvmOg0Wq3yfdh2znoyBi1ttKtms6APV9ta2SO6pdU0b poXTqK4Ofro69YFPKyDji30zY/pGuB/K3DB2T2f7TM8RNfPTNp7ZuOYJ8wU/GBf7T4Qt /FdwLuCulKXMyxsghgykyrLhZ4BeRtxA02Ik61VijXVWmfQM+jsGauR3a2HaqaEna0JR P4p+ar3dMAqDgRurdjUb8mp0TSgQS6xcDRPAFu92YoZ2N5vr4d59nxPM04TNHKsQXTNd 9oogMcbB9fCi27L02fJuoxgv+rCiUh7AgPAgqokq/TEfd9r6HR9FRJRbpLpFkxQcifVt DMdw==

```I believe that core of a negative integer should return a negative
integer (that would match the definition of core). Currently the
result is always positive.
In particular, core(-1) should return -1 not 1 and core(-1,1) should
return [-1,1].
Don't you agree?

Currently we have:

? core(-1)
%1 = 1
? core(-1,1)
***   at top-level: core(-1,1)
***                 ^----------
*** core: negative integer in sqrtint.

Regards,
Max

```