Exp: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "EXP(''number'') '''Description''' EXP returns a double-precision value equal to e<sup>number</sup>. The required parameter, ''number'', is any numeric expression. e is the b...")
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
EXP(''number'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
Exp(''number'')


EXP returns a double-precision value equal to e<sup>number</sup>. The required parameter, ''number'', is any numeric expression. e is the base of natural logarithms, and is approximately equal to 2.718282.
== Description ==


'''Example'''
Exp returns a double-precision value equal to e<sup>number</sup>. The required parameter, ''number'', is any numeric expression. e is the base of natural logarithms, and is approximately equal to 2.718282.
 
== Example (Basic) ==


<pre>
<pre>
REM EXP Example
Rem Exp Example
'EXP raises a number to the eth power
'Exp raises a number to the eth power
PRINT "EXP(0) = " & EXP(0)
Print "Exp(0) = " & Exp(0)
PRINT "e = " & EXP(1)
Print "e = " & Exp(1)
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
EXP(0) = 1
Exp(0) = 1
e = 2.718282
e = 2.718282
</pre>
</pre>


'''Related Items'''
== Related Items ==
 
[[log|Log]]
 
[[Category:Language Reference]]


[[log|LOG]]
[[Category:Math]]

Latest revision as of 17:36, 24 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

Exp(number)

Description

Exp returns a double-precision value equal to enumber. The required parameter, number, is any numeric expression. e is the base of natural logarithms, and is approximately equal to 2.718282.

Example (Basic)

Rem Exp Example
'Exp raises a number to the eth power
Print "Exp(0) = " & Exp(0)
Print "e = " & Exp(1)

Output

Exp(0) = 1
e = 2.718282

Related Items

Log