Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Odd error message

by shadowsong (Monk)
on Sep 15, 2015 at 00:59 UTC ( #1141996=note: print w/replies, xml ) Need Help??


in reply to Odd error message

Try changing this:

use Math::BigFloat lib=>"GMP";

To this:

use bigint try => 'GMP,Pari';

See BIGNUM_SUPPORT on CPAN.

Replies are listed 'Best First'.
Re^2: Odd error message
by robert44444uk (Acolyte) on Sep 15, 2015 at 17:44 UTC

    Thank you shadowsong. I tried this on my batch, but it did not terminate after 1 day, suggesting a massive loss of efficiency (it should have completed in 30 minutes). Also some of my results have NaN, so I will have to look into that. But I can confirm the program did not crash!

      hmm, the NaN problem is a known problem when running Strawberry Perl sadly with this particular package - related to the log function

      robert44444uk,

      No problem. I had another crack at it using what I thought would entail slightly less overhead:

      However, it performed just as bad as your attempts using next_prime and prev_prime if not worse...

      We'd be very keen to see how/if you managed to get your script to perform better.

      Best of luck (and God speed)
      shadowsong

        Thank you Shadowsong. I have had to concentrate on work this last week. When this settles down I will have another go at this program.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1141996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2019-06-24 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (99 votes). Check out past polls.

    Notices?