Re: Need > 15 digits precision without big performance hit
From: Jasper (jasper_marzin_at_yahoo.com)
Date: 06/28/04
- Next message: Looked: "Lisa & Maggie Simpson secretly make love with Marge"
- Previous message: ypetinot: "How to use 2 DIFFERENT VERSIONS of the SAME MODULE in the same perl program ?"
- In reply to: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Next in thread: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Reply: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Reply: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Reply: Sisyphus: "Re: Need > 15 digits precision without big performance hit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Looked: "Lisa & Maggie Simpson secretly make love with Marge"
- Previous message: ypetinot: "How to use 2 DIFFERENT VERSIONS of the SAME MODULE in the same perl program ?"
- In reply to: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Next in thread: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Reply: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Reply: Peter J. Acklam: "Re: Need > 15 digits precision without big performance hit"
- Reply: Sisyphus: "Re: Need > 15 digits precision without big performance hit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|