Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Ln calculation

by spandox (Novice)
on Feb 05, 2013 at 21:28 UTC ( #1017287=note: print w/replies, xml ) Need Help??

in reply to Ln calculation

As a reply I will just copy a excerpt from the manual:

log EXPR


Returns the natural logarithm (base e) of EXPR. If EXPR is omitted, returns the 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); }

See also exp for the inverse operation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017287]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2016-10-27 21:34 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (371 votes). Check out past polls.