11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXP<br />

Syntax<br />

EXP(expr)<br />

Description<br />

The <strong>UniBasic</strong> EXP function raises e to the power of expr. e is approximately<br />

2.71828. expr must be numeric. The function e x is its own derivative. If y = e x , then<br />

x is the natural logarithm of y.<br />

If exp is too large or too small, a warning message is printed and 0 is returned. If exp<br />

is an empty string, the empty string is returned.<br />

Example<br />

In the following example, the program statement raises e to the power of 2, and<br />

assigns this value, 7.3891, to the variable ETOX:<br />

ETOX = EXP(2)<br />

Related Command<br />

<strong>UniBasic</strong><br />

LN<br />

1-276 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!