Ilya Zakharevich on Sat, 08 Dec 2018 04:23:00 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[BUG 2.11.1] Catastrophic loss of precision in intnum()
|
- To: Developers Pari <pari-dev@list.cr.yp.to>
- Subject: [BUG 2.11.1] Catastrophic loss of precision in intnum()
- From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
- Date: Fri, 7 Dec 2018 19:00:35 -0800
- Delivery-date: Sat, 08 Dec 2018 04:23:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1544239377; bh=N/jal4pedIjj/8d2xUbAlbspY0SEebhuLOprgnkG8yo=; h=Resent-From:Resent-Date:Resent-To:Date:From:To:Subject:From:Subject; b=AE6Vr/h3q1aVSGCh+q+gI2YoD6kB7sefxCdBH2sQg5J4ml7YaUDfd/r6FLQjAcxNwTbjW0mZsAt+Z7UQMPQyXmK0J4/35Wxg7i89XqtCWYVkPInoH4Ino0cnOfaR7nPzom9JS4eZZrxs5EG9OHrUdkIpHKfRV+19WgFjaMpnSfnrwg5tMuc9GLdZadV+eOsiAuidhFcBHi5qPJi0wgSk+7JmXOj+DP7VKBnAx8Orspy2QuIlOt+Fx+LNWGcJ7pz+vwtSgM/chK7HVrdqylZeTSFcdlretKCPlll79p43S05Jb5gZ2NjrxZLI5+qw4wLeK+cA4uhpwlfFJaYb7Pg9Sg==
- User-agent: NeoMutt/20170113 (1.7.2)
(18:48) gp > intnum(X=0,2*Pi,sin(X)/(5+3*sin(X)))/Pi*6
time = 15 ms.
%1 = -0.99999999999999997197773738461849225609
Likewise with higher precision: half of the precision is lost.
(Do not know about when this first appeared… Could not find anything in the docs.)
Yours,
Ilya
P.S. Is there any way to communicate to intnum() that integration
happens over a period? This would require a drastically different
integration points…