next up previous contents
Next: EPS Double Precision Floating Up: Base Constants Previous: PI Constant Pi   Contents

Subsections

E Euler Constant (Base of Natural Logarithm)

Usage

Returns a double (64-bit floating point number) value that represents Euler's constant, the base of the natural logarithm. Typical usage

   y = e

This value is approximately 2.718281828459045.

Example

The following example demonstrates the use of the e function.

--> e
ans = 
  <double>  - size: [1 1]
    2.718281828459045      
--> log(e)
ans = 
  <double>  - size: [1 1]
    1.000000000000000



Samit K. Basu 2005-03-16