beautypg.com

Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual

Page 56

background image

RPBASIC-52 PROGRAMMING GUIDE

2-37

EXP

Syntax:

EXP(expr)

Function:

Raises "e" (2.71828) to the pow er of expr

Mode:

Comm and, run

Use:

PRINT EXP(C OS(1))

Cards:

All

D E S C R IP T I ON

This function retu rns the result of the num ber Q (2.718282) raised to the power given by expr. This function is
very com putation time intensive. Sm all values of expr take about 5 milli-seconds to calculate while larger
ones (near 250) require nearly 0.2 seconds. Avoid using this function in tight control or time intensive
applications.

E R R O R

B A D A R G U M E N T When result of expr > 256