Exponential: Difference between revisions

Jump to navigation Jump to search
72 bytes added ,  21:46, 10 September 2022
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 1: Line 1:
:''This page describes the monadic arithmetic function. For the dyadic function, see [[Power (function)]].''
:''This page describes the monadic arithmetic function. For the dyadic function, see [[Power (function)]].''


{{Built-in|Exponential|*}} is a [[monadic]] [[scalar function]] which computes the [[wikipedia:exponential function|exponential function]] (i.e. the power of [[wikipedia:e (mathematical constant)|Euler's constant e]]) of the [[argument]]. Exponential shares the [[glyph]] <source lang=apl inline>*</source> with the dyadic arithmetic function [[Power]].
{{Built-in|Exponential|*}} is a [[monadic]] [[scalar function]] which computes the [[wikipedia:exponential function|exponential function]] (i.e. the power of [[wikipedia:e (mathematical constant)|Euler's constant e]]) of the [[argument]]. Exponential shares the [[glyph]] <source lang=apl inline>*</syntaxhighlight> with the dyadic arithmetic function [[Power]].


== Examples ==
== Examples ==
Line 10: Line 10:
       *1
       *1
2.718281828
2.718281828
</source>
</syntaxhighlight>


On APL implementations that support [[complex]] numbers, one can demonstrate [[wikipedia:Euler's identity|Euler's identity]] (with the help of [[Pi Times]] <source lang=apl inline>○</source>):
On APL implementations that support [[complex]] numbers, one can demonstrate [[wikipedia:Euler's identity|Euler's identity]] (with the help of [[Pi Times]] <source lang=apl inline>○</syntaxhighlight>):


<source lang=apl>
<source lang=apl>
       1+*○0J1
       1+*○0J1
0
0
</source>{{Works in|[[Dyalog APL]]}}
</syntaxhighlight>{{Works in|[[Dyalog APL]]}}


== Properties ==
== Properties ==


Exponential is a special case of [[Power]] with the default left argument of e (<source lang=apl inline>*1</source>).
Exponential is a special case of [[Power]] with the default left argument of e (<source lang=apl inline>*1</syntaxhighlight>).


<source lang=apl>
<source lang=apl>
       ((*1)∘* ≡ *) 0 1 ¯1 0J1
       ((*1)∘* ≡ *) 0 1 ¯1 0J1
1
1
</source>{{Works in|[[Dyalog APL]]}}
</syntaxhighlight>{{Works in|[[Dyalog APL]]}}


Exponential and [[Natural Logarithm|natural log]] <source lang=apl inline>⍟</source> are inverses of each other, except where the natural log is undefined.
Exponential and [[Natural Logarithm|natural log]] <source lang=apl inline>⍟</syntaxhighlight> are inverses of each other, except where the natural log is undefined.


<source lang=apl>
<source lang=apl>
Line 35: Line 35:
       (⊢ ≡ *∘⍟) 1 ¯1 0J1 ⍝ natural log of zero is undefined
       (⊢ ≡ *∘⍟) 1 ¯1 0J1 ⍝ natural log of zero is undefined
1
1
</source>{{Works in|[[Dyalog APL]]}}
</syntaxhighlight>{{Works in|[[Dyalog APL]]}}


== See also ==
== See also ==

Navigation menu