[OS X TeX] TeX request

Bruno Voisin bvoisin at mac.com
Thu Jun 23 16:53:29 EDT 2005


Le 23 juin 05 à 22:41, Chris Goedde a écrit :

> On Jun 23, 2005, at 3:24 PM, Gerben Wierda wrote:
>
>> I need help with a trick I want to perform. I want to be able to  
>> display all the digits of
>>
>> 2!
>> 10!
>> 200!
>
> Do you really need 200!?
>
> A little googling turned up http://www.cs.umd.edu/Outreach/ 
> hsContest97/questions/node3.html which might provide a solution. I  
> don't know if it will work for you, since their code may only work  
> if the answer has fewer than 100 digits. (I'm also not sure what  
> language it's written in.) I think that 200! has close to 400  
> digits in the answer, if my back-of-the-envelope answer is correct.

In[1]:=
200!

Out[1]=
788657867364790503552363213932185062295135977687173263294742533244359449 
963403\
342920304284011984623904177212138919638830257642790242637105061926624952 
829931\
113462857270763317237396988943922445621451664240254033291864131227428294 
853277\
524242407573903240321257405579568660226031904170324062351700858796178922 
222789\
623703897374720000000000000000000000000000000000000000000000000

Which seems to make 376 digits. I'm impressed, and curious about your  
envelope: which algorithm did you use? Stirling's formula?

Bruno Voisin--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list