[Perl] logaritmo NO neperiano

Max de Mendizábal max en upn.mx
Mar Ago 29 09:54:50 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hola,

Aquí está la receta

    * log EXPR

    * log

      Returns the natural logarithm (base e) of EXPR. If EXPR is
omitted, returns log of $_ . To get the log of another base, use basic
algebra: The base-N log of a number is equal to the natural log of that
number divided by the natural log of N. For example:

          sub log10 {
      	my $n = shift;
      	return log($n)/log(10);
          }


John A. Roberto escribió:
> Hola a todos:
> 
> Mi pregunta del día es cuál es la función que Perl
> utiliza para obtener un algoritmo en base 10, pues la
> función log(x) me regresa el logaritmo neperiano de x.
> 
> Gracias mil .............
> 
> John Roberto
> 
> 
> 		
> ______________________________________________ 
> LLama Gratis a cualquier PC del Mundo. 
> Llamadas a fijos y móviles desde 1 céntimo por minuto. 
> http://es.voice.yahoo.com
> _______________________________________________
> Perl mailing list
> Perl en tlali.iztacala.unam.mx
> http://tlali.iztacala.unam.mx/cgi-bin/mailman/listinfo/perl
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9FU6QEy5rMguIAsRAsaTAJ4ijxYrnGDi+6Pnp4z5xsM2XoQlmQCfTasY
K42mmNGtGXyTDDAOHOgEm0w=
=xm6B
-----END PGP SIGNATURE-----


Más información sobre la lista de distribución Perl