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 (Saint) on Apr 26, 2019 at 01:32 UTC

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

    from perldoc

    log

    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 (Acolyte) 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($_).