Files
BlitzNext/_release/help/commands/2d_commands/Exp.htm
T

67 lines
1.4 KiB
HTML
Raw Normal View History

2014-12-08 12:43:20 +13:00
<html>
<head>
<title>Blitz3D Docs</title>
<link rel=stylesheet href=../css/commands.css type=text/css>
</head>
<body>
<h1>Exp# ( x# )</h1>
<h1>Parameters</h1>
<table>
<tr>
<td>
x = any number.
</td>
</tr>
</table>
<h1>Description</h1>
<table>
<tr>
<td>
This is e^x where e = 2.71828...
<br />
<br />
For the curious, e is defined by the infinite sum:
<br />
<br />
2 + 1/(2) + 1/(2*3) + 1/(2*3*4) + 1/(2*3*4*5) + ...
<br />
<br />
See also Log()
</td>
</tr>
</table>
<h1><a href=../2d_examples/Exp.bb>Example</a></h1>
<table>
<tr>
<td>
; Exp example
<br />
<br />
; Exp(x) is the same as e^x.
<br />
<br />
; Actually, due to the approximate nature of floating point arithmetic
<br />
; these will not be exactly equal. But in the following example
<br />
; the difference is so small you can't see it.
<br />
<br />
e# = 2.71828182845905 ; over-specified, might help and can't hurt.
<br />
<br />
x# = .125 ; = 1/8
<br />
2014-02-26 16:08:39 +13:00
<br />