Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

exp

exp

type: function (subr) 
location: built-in
source file: xlmath.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(exp <power> )
        <power>         -       floating point number/expression

DESCRIPTION

The EXP function calculates e (2.7128) raised to the specified <power> and returns the result.

EXAMPLES

(exp 0.0)                               ; returns 1
(exp 1.0)                               ; returns 2.71828  (e)
(exp 2.0)                               ; returns 7.38906
(exp 10.0)                              ; returns 22026.5
(exp 0)                                 ; error: bad integer operation

NOTE: EXP with a large <power> like 1000.0 causes an incorrect value to be generated, with no error. The returned value will be a very large floating point number near the computer's limit (something like 1.79000e+308).


Go to the first, previous, next, last section, table of contents.