Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference

cl:exp


The cl:exp function does the same as the Nyquist/XLISP exp function, but also accepts integer numbers as argument:

(cl:exp power)
power - an integer or floating-point number
returns - the result of 'e' [2.7128] to the power of power

(defun cl:exp (x)
  (exp (float x)))

See defun, exp, float.

The cl:exp function computes 'e' [2.7128] raised to the specified 'power' and returns the result as a floating-point number.

  Back to top


Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference