Exp: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
JwellsNB (talk | contribs)
No edit summary
Line 5: Line 5:
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.
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 ==
== Example (Basic) ==


<pre>
<pre>
Line 12: Line 12:
Print "Exp(0) = " & Exp(0)
Print "Exp(0) = " & Exp(0)
Print "e = " & Exp(1)
Print "e = " & Exp(1)
</pre>
== Example (JavaScript) ==
<pre>
// Exp Example
/* Exp raises a number to the eth power */
NSB.Print("Exp(0) = " + Math.exp(0));
NSB.Print("e = " + Math.exp(1));
</pre>
</pre>



Revision as of 18:49, 19 May 2013

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)

Example (JavaScript)

// Exp Example
/* Exp raises a number to the eth power */

NSB.Print("Exp(0) = " + Math.exp(0));
NSB.Print("e = " + Math.exp(1));

Output

Exp(0) = 1
e = 2.718282

Related Items

Log