Skip Menu |
 

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

Report information
The Basics
Id: 71540
Status: new
Priority: 0/
Queue: Math-BigRat

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



From gg [...] zip.com.au Fri Oct 7 20: 41:05 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.894 tagged_above=-99.9 required=10 tests=[AWL=0.006, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <87liswjoya.fsf [...] blah.blah>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.894
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7F4F6240AEB for <cpan-bug+Math-BigRat [...] hipster.bestpractical.com>; Fri, 7 Oct 2011 20:41:05 -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 h6hBIAv4V80S for <cpan-bug+Math-BigRat [...] hipster.bestpractical.com>; Fri, 7 Oct 2011 20:41:03 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 8231E240AEA for <bug-Math-BigRat [...] rt.cpan.org>; Fri, 7 Oct 2011 20:41:02 -0400 (EDT)
Received: (qmail 21347 invoked by uid 103); 8 Oct 2011 00:41:02 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 8 Oct 2011 00:41:02 -0000
Received: from mailout1-2.pacific.net.au (HELO mailout1.pacific.net.au) (61.8.2.209) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Fri, 07 Oct 2011 17:40:59 -0700
Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 4C2EA328109 for <bug-Math-BigRat [...] rt.cpan.org>; Sat, 8 Oct 2011 11:40:53 +1100 (EST)
Received: from blah.blah (unknown [203.26.175.77]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 164012740D for <bug-Math-BigRat [...] rt.cpan.org>; Sat, 8 Oct 2011 11:40:49 +1100 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...] zip.com.au>) id 1RCKxZ-0000AY-OB for bug-Math-BigRat [...] rt.cpan.org; Sat, 08 Oct 2011 11:40:13 +1100
Delivered-To: cpan-bug+Math-BigRat [...] hipster.bestpractical.com
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.3 (gnu/linux)
Subject: bsqrt() precision and rounding
Return-Path: <gg [...] zip.com.au>
X-RT-Mail-Extension: math-bigrat
X-Original-To: cpan-bug+Math-BigRat [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Sat, 08 Oct 2011 11:40:13 +1100
X-Spam-Level:
To: bug-Math-BigRat [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
X-RT-Original-Encoding: us-ascii
Content-Length: 388
Download (untitled) / with headers
text/plain 388b
The docs of BigRat bsqrt() could say how much accuracy it gives and which way it rounds. Does it end up a hard limit of 40 digits of some such (a default from BigFloat maybe)? If the input is a perfect square it'd be good to give back the exact root. Not sure what to do otherwise, though perhaps rounding downwards, to whatever precision denominator, would be consistent with BigInt.


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.