Post Reply 
Bernoulli numbers and large factorials
02-09-2014, 09:26 PM (This post was last modified: 02-09-2014 10:13 PM by Dieter.)
Post: #6
RE: Bernoulli numbers and large factorials
(02-09-2014 08:01 PM)Marcus von Cube Wrote:  The WP 34S has Bn built-in. In double precision mode I can get B2122. Larger arguments return 0 (which can be considered a bug).

On my 34s (v. 3.2 3405) both B2124 and Zeta (-2123) still return a result, while beyond that a "+∞ Error" is displayed. Do you really get a zero here?

If 11 valid digits are sufficient, the 35s program does a good job and, compared to the 34s, it is really fast. I wonder how the 34s will perform with the same algorithm in user code. OK, 34 digits for n as low as 10 or 12 will take somewhat longer. ;-)

EDIT: The reason for the 34s limit at B2122 probably is the same as the one mentioned in my original post: it's the factorial function. In DP mode the 34s still can handle 2122! but 2124! will cause an overflow. This could be overcome by using the permutation function. A quick-and-dirty test confirmed that B2776 = 1,01268...E+6140 can be done. The result is returned in about a second.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Bernoulli numbers and large factorials - Dieter - 02-09-2014 09:26 PM



User(s) browsing this thread: 1 Guest(s)