Natural Logarithm: Difference between revisions
Jump to navigation
Jump to search
(Created page with ":''This page describes the monadic arithmetic function. For the dyadic logarithm function, see Logarithm.'' {{Built-in|Natural Logarithm|⍟}}, or '''Natural Log''', is a...") |
No edit summary |
||
Line 1: | Line 1: | ||
[[File:TreeLog.jpg|thumb|right|A natural log]] | |||
:''This page describes the monadic arithmetic function. For the dyadic logarithm function, see [[Logarithm]].'' | :''This page describes the monadic arithmetic function. For the dyadic logarithm function, see [[Logarithm]].'' | ||
{{Built-in|Natural Logarithm|⍟}}, or '''Natural Log''', is a [[monadic]] [[scalar function]] which computes the [[wikipedia:natural logarithm|natural logarithm]] of the [[argument]]. Logarithm shares the [[glyph]] <source lang=apl inline>⍟</source> with the dyadic arithmetic function [[Logarithm]]. | {{Built-in|Natural Logarithm|⍟}}, or '''Natural Log''', is a [[monadic]] [[scalar function]] which computes the [[wikipedia:natural logarithm|natural logarithm]] of the [[argument]]. Logarithm shares the [[glyph]] <source lang=apl inline>⍟</source> with the dyadic arithmetic function [[Logarithm]]. The [[glyph]], a composition of the glyphs for [[Circular]] (<source lang=apl inline>○</source>) and [[Exponential]] (<source lang=apl inline>*</source>), indicating its close mathematical ties with these two functions, while also being a stylised tree log. | ||
== Examples == | == Examples == |
Revision as of 08:59, 2 June 2020
- This page describes the monadic arithmetic function. For the dyadic logarithm function, see Logarithm.
⍟
|
Natural Logarithm (⍟
), or Natural Log, is a monadic scalar function which computes the natural logarithm of the argument. Logarithm shares the glyph ⍟
with the dyadic arithmetic function Logarithm. The glyph, a composition of the glyphs for Circular (○
) and Exponential (*
), indicating its close mathematical ties with these two functions, while also being a stylised tree log.
Examples
⍟1 2 (*1) (*10) 0 0.6931471806 1 10
Properties
Natural logarithm is a special case of Logarithm with the default left argument of e (*1
).
((*1)∘⍟ ≡ ⍟) 1 ¯1 0J1 1
Works in: Dyalog APL
Natural logarithm and exponential *
are inverses of each other, except where the natural log is undefined.
(⊢ ≡ ⍟∘*) 0 1 ¯1 0J1 1 (⊢ ≡ *∘⍟) 1 ¯1 0J1 ⍝ natural log of zero is undefined 1
Works in: Dyalog APL