Post Reply 
(HP71B) Bernoulli Polynomials
07-17-2023, 11:59 PM
Post: #4
RE: (HP71B) Bernoulli Polynomials
Quite an impressive program. Congratulations for representing Bernoulli numbers as rational numbers on a system that does not support rationals. However, ...

(07-17-2023 07:16 PM)C.Ret Wrote:  If someone wants to use this program on an HP-71B without this ROM, they will have to adapt by defining a user function:
5 DEF FNC0(N,K)=FACT(N)/FACT(K)/FACT(N-K)
and replacing every use of COMB(n,k) with FNC0(n,k) in the code.

Computing binomial coefficients this way is numerically unstable and will likely undo the advantages of maintaining Bernoulli numbers as integer ratios. This section of the Wikipedia page on binomial coefficients gives several useful methods.

Finally, not to nit-pick, but it's Ada, not Eva. Big Grin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(HP71B) Bernoulli Polynomials - Namir - 07-14-2023, 10:00 PM
RE: (HP71B) Bernoulli Polynomials - C.Ret - 07-17-2023, 07:16 PM
RE: (HP71B) Bernoulli Polynomials - John Keith - 07-17-2023 11:59 PM



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