manual:chapter6:constants:cmd_econst

This is an old revision of the document!



Synopsis


Push the symbolic constant 'e' on the stack

Stack Diagram


Input Stack Output Stack
'e'
Level 1 Level 1

Legend

Type Analytic Function
Parallel list processing Group 1
Affected by flags None

Description


The e function pushes on the stack a symbolic representation of the constant $e$.

Application of the →NUM operator returns its closest approximation to 2000-digits accuracy, irrespective of the numeric precision defined by SETPREC. This is done to ensure maximum accuracy if the symbolic expression is finally converted to a real number.

Compatibility


This command is only partially compatible with userRPL.

In particular:

  • userRPL returns the closest approximation of $e$ to 12-digits accuracy.

Usage


The following program

« 6 SETPREC
  e →NUM
  DUP
  1 *
»

will result in

2:               2.718281828459.
1:                      2.71828.
……………………………………………………………………………………

Related Commands


Constants 4

Command Short Description
π
і
е
ј
  • manual/chapter6/constants/cmd_econst.1571573567.txt.gz
  • Last modified: 2019/10/20 05:12
  • by jojo1973