SERVING THE QUANTITATIVE FINANCE COMMUNITY

  • 1
  • 5
  • 6
  • 7
  • 8
  • 9
 
User avatar
Cuchulainn
Posts: 55277
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Large Factorials

February 6th, 2018, 9:02 pm

Traden4Alpha wrote:
What do the specs say?  Is there a hidden show-stopper such as a 32-bit "size" variable in the internal data structure of BigInteger?  Does the OS barf if a single object exceeds some number of gigabytes in size?

It has no lower/upper bounds, so only Out of Memory can be thrown.
 
User avatar
Traden4Alpha
Posts: 23869
Joined: September 20th, 2002, 8:30 pm

Re: Large Factorials

February 6th, 2018, 9:28 pm

Cuchulainn wrote:
Traden4Alpha wrote:
What do the specs say?  Is there a hidden show-stopper such as a 32-bit "size" variable in the internal data structure of BigInteger?  Does the OS barf if a single object exceeds some number of gigabytes in size?

It has no lower/upper bounds, so only Out of Memory can be thrown.

Interesting...Is BigInteger bounded by RAM or by virtual memory?

And does it truly have no upper bounds (e.g., the internal variable encoding the size of a BigInteger is also a BigInteger) or does it just have yuge bounds (e.g., 64 bit int).
 
User avatar
Collector
Topic Author
Posts: 3522
Joined: August 21st, 2001, 12:37 pm

Re: Large Factorials

February 15th, 2018, 5:23 pm

We are waiting on a new Big number here! Need Big time for it also? 

(Time is Money, Big Money = Big Time) 
 
User avatar
Traden4Alpha
Posts: 23869
Joined: September 20th, 2002, 8:30 pm

Re: Large Factorials

February 15th, 2018, 5:47 pm

Why isn't pi a big number? It certainly has a big number of digits, no?

Or maybe you seek Ackermann's function (https://en.wikipedia.org/wiki/Ackermann_function)
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...