[OS X TeX] TeX request

Jonathan Kew jonathan_kew at sil.org
Thu Jun 23 16:58:06 EDT 2005


On 23 Jun 2005, at 2:24 pm, Gerben Wierda wrote:

> Hello folks,
>
> I need help with a trick I want to perform. I want to be able to  
> display all the digits of
>
> 2!
> 10!
> 200!
>

Something like this should give you the digits of 200!:

     dc -e "`perl -e 'print "1 ";foreach(2..200){print $_, "*"};print  
"p"'`"

(Works in bash; would need some adjustment for tcsh, I believe, as  
the quotes get confused.)

HTH,

JK

--------------------- 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