The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

New Blog: Factorials
Message #1 Posted by Eddie W. Shore on 20 Oct 2012, 1:42 p.m.

Factorial of Large Numbers

The might of the 50g is demonstrated. It think it is the first time I typed a 181 digit number. Program for the 39gii is included.

Eddie

      
Re: New Blog: Factorials
Message #2 Posted by Walter B on 20 Oct 2012, 3:27 p.m.,
in response to message #1 by Eddie W. Shore

Just FYI, all factorials you mentioned in your blog may be calculated directly on a WP 34S in DBLON mode :-)

            
Re: New Blog: Factorials
Message #3 Posted by Paul Dale on 20 Oct 2012, 5:59 p.m.,
in response to message #2 by Walter B

More importantly, the 34S includes a Log Gamma function which effectively calculates the sum of the logarithms directly.

- Pauli

                  
Re: New Blog: Factorials
Message #4 Posted by Gerson W. Barbosa on 20 Oct 2012, 7:29 p.m.,
in response to message #3 by Paul Dale

So does the HP-50g, but the wp 34S is more accurate:

001 LBL A
002 INC X
003 LNGamma
004 # 010
005 LN
006 /
007 IP
008 RCL L
009 FP
010 10^x
011 END

111 A --> 1.76295255109 x<>y --> 180.

On the HP 50g,

111 ENTER
<< 1. + LOGGAMMA 10.
   LN / DUP IP SWAP FP
   ALOG
>>
EVAL 
will return
                       180.
              1.76295255248

Gerson.

                        
Re: New Blog: Factorials
Message #5 Posted by Eddie W. Shore on 21 Oct 2012, 11:28 a.m.,
in response to message #4 by Gerson W. Barbosa

Learning the upgraded WP 34S on my list of things to do.

      
Re: New Blog: Factorials
Message #6 Posted by Bart (UK) on 20 Oct 2012, 6:17 p.m.,
in response to message #1 by Eddie W. Shore

Quote:
It think it is the first time I typed a 181 digit number.
Do it on the 50G emulator, then "Save Object". Run HPUserEdit, then import it with "File" -> "Import" and then you can copy the number. (You can also save it as a variable on the real 50G and copy it to a PC with the SD card, and import into HPUserEdit).

Thanks for your blogs, they're always interesting.
            
Re: New Blog: Factorials
Message #7 Posted by Eddie W. Shore on 21 Oct 2012, 11:27 a.m.,
in response to message #6 by Bart (UK)

Quote:

Do it on the 50G emulator, then "Save Object". Run HPUserEdit, then import it with "File" -> "Import" and then you can copy the number. (You can also save it as a variable on the real 50G and copy it to a PC with the SD card, and import into HPUserEdit).

Thanks for your blogs, they're always interesting.


Thank you Bart. Copying the number is a lot easier than typing the number out.

Update:

Bart, I have posted another entry rearding factorials, basically an introduction to factorials - inspired by my dad. (no programs this time though)

Edited: 23 Oct 2012, 9:28 a.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall