Skip Menu |
 

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 77105
Status: resolved
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: jouni.pekkanen [...] qentinel.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From jouni.pekkanen [...] qentinel.com Thu May 10 05: 41:48 2012
X-Originalarrivaltime: 10 May 2012 09:41:36.0868 (UTC) FILETIME=[17D67A40:01CD2E91]
MIME-Version: 1.0
X-Spam-Status: No, score=-6.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"; format="flowed"
Message-ID: <4FAB8D50.8020402 [...] qentinel.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 3A2512402E7 for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Thu, 10 May 2012 05:41:48 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TuqrCteczDPV for <cpan-bug+Math-BigInt [...] hipster.bestpractical.com>; Thu, 10 May 2012 05:41:46 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 210B72402C9 for <bug-Math-BigInt [...] rt.cpan.org>; Thu, 10 May 2012 05:41:45 -0400 (EDT)
Received: (qmail 666 invoked by uid 103); 10 May 2012 09:41:45 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 10 May 2012 09:41:45 -0000
Received: from mail.novalnetworks.com (HELO mail.novalnetworks.com) (217.152.61.30) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Thu, 10 May 2012 02:41:41 -0700
Received: from [10.10.12.182] ([10.10.12.182]) by mail.novalnetworks.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 10 May 2012 12:41:36 +0300
Delivered-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
Subject: $x**$y with accuracy >= 67, $x >= 1000 and $y not integer or 0.5
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16
Return-Path: <jouni.pekkanen [...] qentinel.com>
X-RT-Mail-Extension: math-bigint
X-Original-To: cpan-bug+Math-BigInt [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Thu, 10 May 2012 12:41:36 +0300
X-Spam-Level:
To: bug-Math-BigInt [...] rt.cpan.org
Content-Transfer-Encoding: 8bit
From: Jouni Pekkanen <jouni.pekkanen [...] qentinel.com>
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 939
Download (untitled) / with headers
text/plain 939b
Hi, When I run this use 5.010; use strict; use warnings; use Math::BigFloat; my $xx = 1000; my $x = Math::BigFloat->new($xx); my $y = rand(10); for my $a (65 .. 68) { $x->accuracy($a); say "$a: $xx**$y ", ($x**$y); } I get results like this 65: 1000**0.299018079954298 7.8895864600984835720528135951950551836538124300181660092503552481 66: 1000**0.299018079954298 7.88958646009848357205281359519505518365381243001816600925035524814 67: 1000**0.299018079954298 9.706611578692184195066301629228105510868624252587447343398271978424 68: 1000**0.299018079954298 9.7066115786921841950663016292281055108686242525874473433982719784244 This happens with every random old Debian or Ubuntu system I've tried this on, and an old Solaris system with perl v5.8.4 seems to hang with a Show quoted text
>= 67.
-- Qentinel Oy, Jouni Pekkanen Jouni.Pekkanen@qentinel.com, +358 50 331 6721 Äyritie 12 B, 01510 Vantaa, Finland http://www.qentinel.com
MIME-Version: 1.0
In-Reply-To: <4FAB8D50.8020402 [...] qentinel.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <4FAB8D50.8020402 [...] qentinel.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-23349-1341859878-1037.77105-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 154
Download (untitled) / with headers
text/plain 154b
This looks to be a variation of the accuracy issue here: https://rt.cpan.org/Ticket/Display.html?id=43692 This is still happening on the latest version.
MIME-Version: 1.0
In-Reply-To: <4FAB8D50.8020402 [...] qentinel.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <4FAB8D50.8020402 [...] qentinel.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.16-11781-1382466880-1717.77105-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 89
See proposed fix at: https://rt.cpan.org/Ticket/Display.html?id=43692 which fixes this.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.