[OS X TeX] TeX request

Jean-Claude DE SOZA jeanclaudedesoza at wanadoo.fr
Fri Jun 24 16:49:25 CEST 2005


Gerben,

In a text file, enter :

#!/usr/local/bin/ruby
class Integer
   def factorial
     (1..self).inject(1) { |f, n| f * n }
   end
end
puts 200.factorial

Save it as fact.rb and run it with ./fact.rb or ruby fact.rb
Jean-Claude DE SOZA

Le 23 juin 05 à 22:24, Gerben Wierda a écrit :

> 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!
>
> I need some sort of perl, ruby, bc or other way to produce all the  
> digits. Then I can use some TeX trickery (maybe from the diminuendo  
> trick from the showcase, or crescendo) to display them
>
> G
> --------------------- 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>
>
>
> ---------------------------------------------------------------------- 
> -----------------
> Wanadoo vous informe que cet  e-mail a ete controle par l'anti- 
> virus mail.Aucun virus connu a ce jour par nos services n'a ete  
> detecte.
>
>
>
>


--------------------- 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 macostex-archives mailing list