Re: Need > 15 digits precision without big performance hit

From: Jasper (jasper_marzin_at_yahoo.com)
Date: 06/28/04


Date: 27 Jun 2004 16:11:56 -0700

pjacklam@online.no (Peter J. Acklam) wrote in message news:<vfhdng1d.fsf@online.no>...
> jasper_marzin@yahoo.com (Jasper) wrote:
>
> > Thank you very much for your replies - with GMP, is there
> > anything else I need to add to my code, or just that one line
> > ??? I assume I still need to use the bigfloat precision calls,
> > etc., that are part of bigfloat, right ? Its not just as easy
> > as adding a single line of code :)...just confirming cause you
> > never know..
>
> You must declare your variables as documented in
>
> perldoc Math::BigFloat
>
> For instance,
>
> $x = Math::BigFloat->new("3.141592653589793238462643383279502884197");
>
> but after that you can use these variables as regular perl
> variables:
>
> $y = $x * $x; # $y = 9.8696044010893586188344909998...
>
> See the documentation for details.
>
> Peter

Thanks again Peter...I installed GMP (static library) on Windows XP
using these instructions http://www.cs.nyu.edu/exact/core/gmp/ - how
do I verify installation ? Reason I ask, I ran the perl program in
the GMP directory and out, with and without GMP called from the
program, and the performance is still the same...this leads me to
believe something is up with my GMP install, but its wierd that no
error is thrown with
use Math::BigFloat lib => 'GMP';

Do you have any advice on this one ? Do I need to also install the
dynamic library and link it ? "Make check" from cygwin returned no
errors either...

Regards !!

Jasper Marzin



Relevant Pages

  • Re: Need > 15 digits precision without big performance hit
    ... I ran the perl program in ... > the GMP directory and out, with and without GMP called from the ... script silently resorts to the pure perl Math::BigFloat routines. ... Do I need to also install the ...
    (comp.lang.perl.modules)
  • Re: The Problems of TeX
    ... it straightforward to install texlive 2007 on a Linux system. ... I had never done any non-trivial configuration of TeX distributions ... But you do fall into the category of `Unix expert', ... Emacs documentation is, on its own, ...
    (comp.text.tex)
  • Re: Installing AIX OS on SAN disks?
    ... You will need to install the driver for the Clariion: ... Plus install Navisphere and Power Path. ... Loading the OS on the SAN disk is pretty straight forward, ... I received some documentation from one of the IBM Global Services ...
    (AIX-L)
  • Re: CLOS persistence
    ... spent several hours yesterday trying to install all the dependencies ... instances are cached within the transaction and their data is ... tutorial + API documentation simplify things big way. ... How hard it is to add sqlite backend ...
    (comp.lang.lisp)
  • Re: The Problems of TeX
    ... the user already knows about TeX and friends. ... Documentation is poor, ... I don't see that many people are in a position to install a TeX ... But you do fall into the category of `Unix expert', ...
    (comp.text.tex)