Constants
These commands simply take a defined constant and add that number to the top of the stack (line1). There are currently not that many constants defined, but if there is a
desire to add additional ones please me know. It’s quick and easy.
To use a constant, simply run the command and the value of the requested constant will be added to the top of the stack (line1)
Constants Table
| Constant | Description |
|---|---|
| pi | PI - ARCHIMEDES’ CONSTANT Archimedes’ constant, or PI, is the name given to the ratio of the circumference of a circle to the diameter. PI inserts the value of PI onto the stack. In RPNCalc, Pi is calculated to 50 decimal places 3.14159265358979323846264338327950288419716939937510 |
| phi | PHI - THE GOLDEN RATIO If the stack is empty, phi will simply insert the PHI, also known as the Golden Ratio, onto the top of the stack (line1). In RPNCalc, Phi is defined as 1.618033989However, if there is an item on the stack, it will also display the possible long and short section values |
| phibox | PHI COMPLIANT BOX DIMENSIONS Given a length value, calculate a box width (Y) and height (Z) using the PHI Golden Ratio. These values will be displayed and added onto the stack. As a woodworker, I frequently make boxes and this will help make one with pleasing dimensions |
| eulersnum eulersnumber | EULER’S NUMBER Euler’s number is also known as the exponential growth constant. It is the base for natural logarithms and is found in many areas of mathematics. The command euler inserts Euler’s number (e) onto the stack. e is calculated to 50 deciaml places 2.71828182845904523536028747135266249775724709369995 |
| eulersconst eulersconstant | EULER’S CONSTANT Euler’s constant (sometimes called the Euler–Mascheroni constant) is a mathematical constant, usually denoted by the lowercase Greek letter gamma (γ), defined as the limiting difference between the harmonic series and the natural logarithm. Euler’s Constant is represented in RPNCalc to 36 decimal places 0.57721566490153286060651209008240243 |
| sol | SPEED OF LIGHT Inserts the speed of light, in meters per second, onto the stack. RPNCalc uses 299,792,458 m/s as the speed of light |
New Constants
Constants are easy to add, and I’m happy to do so if they are universally used. Just contact me with your request at rpncalc@fross.org