Bill Allombert on Thu, 09 Mar 2023 09:53:48 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: logint() bug?
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 9 Mar 2023 09:52:35 +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=1678351949; c=relaxed/relaxed; bh=nMQzvIuJGHNAu4zH9aY8h4ZVKDSjBmpnTGxUwwZiMvw=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=AM1WlsNCFp6yiLU0Q/KEDXIe3YrhV974v2poap36dPhy8VUK7fGEhYN27ZoZ6P3aM6kHac5ST+9nxLcn4y0vDiZim+3q+R1YSosx1Kq3HHHX2eBw0zwqzaGzjYBnQC+6usMz0q7AKXRGa7kkNDWXRdNBfrud2RHBG8m6w6CFwJL6+hO4wNrXrf7p9RUGSuc2cURpF8XQaJbMGx4kmeUSTeg0e6zQ7WycnOf0L/GeQPaez62CTpvfMGgi99q9/ZRA/fwM0JTnfkTtd9gUfkXo/WJeYKtZlEGnFkyz4DtoW0N9xa5jfL0tRGpJMqE+yuUiDTW3kaZUmuEanqN7bMBlocGJoy/o/5M/pZ8SfZYZgxy8gwa2NRvA/7le3nxb/p0XbUTs1FO9Uk/5XgCHni/9/rN+BM5r9SJvlIp3F3xbghdvvoZJo5GbZZZTX8rZJPhGdTncCPiAaCD3Pn+1gil1netCG+Zg/BPJ1NNHbXecX9wCDos6BME8WY7YfHtS+pvrb99UG8b9d7H3PEKz1/WzsyOHjsxQAJf9dLC/t34OrnESdeyahphMockV0vZTDqQ5fpY50TGtRVebSbFK5WgtDfyp3NB33bxmDqgf3SToKgSvvkDNALOJGin/O4PZU2FV46fW5f3wwntfmUUElxw7vl3o59thvZASn8VtcWgoyUA=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1678351949; cv=none; b=JTEqOF3lTOx0j8DN+eu4ulO6+5BcjROhUUGZX1w/e96svwh1GVqskLYEfYYhONkCFya6ZSAh48MtS+q5ZUjOPK8L+kec0LSj8RqPQEy/+pC3GC886gCZLJQBJV7V6QXgTdrkVtpfWxQXCTgxfkNd2XY/9jHjWn7N+Kl8C12HzgZzAkDt1TTUXCAVaxXSUQKo5iD2CP1V1zbgeEpdpWQgVoyzZEOS6ghmhNjtGpu9E4qMTOpU+8MoDbjhUfTNH5ykO5lmcZiRq2G5vxJFc11LJAAX5q/aH9hd5WZF5238v6D46nigi3+VJHA84X+TZFru6QAvf6h+jZ+UiKQR1eNp2KlcSkM+z3I/HpduFu2SZk0jBy7LuG1c3srfZYdLgIMUTFtPEF4uL2k7pK31ZaxFHzbxPYDLX5ram/udZXG1BuGnSRlLLn4foogd5UDDw1hX4d8pL8hjlVVvYJsQ9YWFBRJUaYoj537c3KsfCHRPw3yf+flHi7XQXRgYf9uxGheRVwMk3LmkhFimB2opn/ydDicQggzH7bqEykAsch8NPgHhkcffgogolFGYdQ8SjND6X9cZQKxFzEDN2dScXhQHY2aYrnfjQCaIWFTP7krUsdOCFV7O808cd71dr9VDeZxO4BOdJDIZCu/afwCE5kNeVFju0qdEiYO8LXa890YO92E=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 09 Mar 2023 09:53:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1678351949; bh=nMQzvIuJGHNAu4zH9aY8h4ZVKDSjBmpnTGxUwwZiMvw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=oZqlst0q9kh/XCXITqf3ETgxCliRlAL/k/6KSkBDudxkCCNxQdIWi1798TALlZCrI A0/jybpHS8pg3kNZQjJmJlknXRGq4waVAjun9D13nAdDV3rcsp1LQ5BEoQ+4Uadby6 wfFRKYpD5NaIlIVrl3ptg/xo1yTYo4/gURdPkDzoCRqBSnz57JkN3Fh823Arhebtu8 xmTickMrMOF8RTwti3JeTREJbXSqxUHh1+SdeydSbu5vFjRhRa6RmM1wQ39qBgWqrj haRKAGNAoNtZpCP8Qkl95L093vzvy6Yd0eiVu9vsmaGB2iDyYjfai/dlJVl0Y0jt9H cF17E7KAwS5I6buEL1OxKp5CqDQHDyBC0+e+2kZRGko4bsn8WMMqpygwHpHHA6KRWI 21Z8XQ9182x0EwNCNL/GX5oyje/lxSdztsTwDqNSFt0Acihd68LFX92wr8vBzhY9Bm MD8zXsxSM1H8uj0NkIAY8YjPMzlYMe+F7RrXskW9VvWC7jpH5r9v9akycIrrRGdOs0 ersrk/UnKr2+bAMKlqC3MCQ1E+K8b1Nz8GAa+hCOs+30jFeQJtoRvJ0UT/R4pTZsLr 3FFUNnpSShgpJgs2m4+M43EGNwkyc9Zl57KoZHuv6dHK2P+Rf3gYx2GXb96LP/umIY uukFnQy0qma+0O1pD5/9Srow=
- In-reply-to: <CAJkPp5M930tybTN9LCgCqTP2RAjc0_ShkgED0GKHLscS-0jH6g@mail.gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5M930tybTN9LCgCqTP2RAjc0_ShkgED0GKHLscS-0jH6g@mail.gmail.com>
On Wed, Mar 08, 2023 at 10:19:12PM -0500, Max Alekseyev wrote:
> I see the following inconsistent results, while in both cases I expect the
> result to be -1. Bug?
>
> ? logint(.5,2)
> %1 = 0
>
> ? logint(1/2,2)
> *** at top-level: logint(1/2,2)
> *** ^-------------
> *** logint: domain error in logint: x <= 0
> *** Break loop: type 'break' to go back to GP prompt
This is why my original implementation of logint only allowed integers...
Cheers,
Bill