Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Anti-Log Function?

by aplonis (Pilgrim)
on Apr 26, 2019 at 00:51 UTC ( #1233002=perlquestion: print w/replies, xml ) Need Help??

aplonis has asked for the wisdom of the Perl Monks concerning the following question:

Is there an anti-log function in Perl? Or lacking that, an example somewhere of doing inverse logarithms? That is to say, the inverse of a natural log?

Replies are listed 'Best First'.
Re: Anti-Log Function?
by Cristoforo (Curate) on Apr 26, 2019 at 01:01 UTC
    The function exp is the 'antilog'.
Re: Anti-Log Function?
by LanX (Archbishop) on Apr 26, 2019 at 01:32 UTC

    I suppose you might have missed that log is the "natural log" in Perl:

    from perldoc


    Returns the natural logarithm (base e) of EXPR.


    See also exp for the inverse operation.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Re: Anti-Log Function?
by Anon6372098 (Novice) on Apr 26, 2019 at 03:24 UTC

    exp is the 'anti-log' Returns e (the natural logarithm base) to the power of EXPR. If EXPR is omitted, gives exp($_).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1233002]
Approved by dorko
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2019-07-19 02:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found