Jump to content

Math on large numbers


Recommended Posts

I was wondering if anyone knows of any libraries or optimized functions that perform math on large numbers. I've coded my own but am curious on more optimal ways of implementing some of the functions I have. I haven't been able to find anything online.

This post on factorials has been my inspiration to start looking though: The factorial routine that won the NI coding challenge does 3000 factorial in 50ms! That's wayyyyy faster than my math VI's (3.6 million times faster to be exact). http://forums.lavausergroup.org/index.php?showtopic=1543

I was wondering if anyone has seen any pre-existing code floating around somewhere though to perform large number math using arrays.

Link to comment
I was wondering if anyone knows of any libraries or optimized functions that perform math on large numbers.  I've coded my own but am curious on more optimal ways of implementing some of the functions I have.  I haven't been able to find anything online.

This post on factorials has been my inspiration to start looking though: The factorial routine that won the NI coding challenge does 3000 factorial in 50ms!  That's wayyyyy faster than my math VI's (3.6 million times faster to be exact).  http://forums.lavausergroup.org/index.php?showtopic=1543

I was wondering if anyone has seen any pre-existing code floating around somewhere though to perform large number math using arrays.

5202[/snapback]

Greg McKaskle, yes the famous one, has mentioned on InfoLabVIEW some time ago that he has a string based math library which can work with arbitrary size of numbers. Since it is string based I would guess it is not for performance junkies, but it has no other limitation in number format than what the computer can provide on memory. I think he offered this library to interested people and he may even have put it up on the Developer Exchange at some point but I'm not sure about this last point.

Rolf Kalbermatter

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.