-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- If something is on the stack, display the long and short results - Regardless of stack, add the golden ratio to the top of the stack - Updated the User Guide page to reflect this change - Bumped the version of JUnit5 form 5.10.1 to 5.10.2
- Loading branch information
Showing
5 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<img align="right" width="125" src="../Images/Constants.png"> | ||
<img alt="Page Icon" align="right" width="125" src="../Images/Constants.png"> | ||
|
||
# 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` | ||
|
||
|Constant|Description| | ||
|--------|-----------| | ||
|pi|**PI - ARCHIMEDES' CONSTANT**<br>[Archimedes' constant, or PI](https://en.wikipedia.org/wiki/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, and Java in general, Pi is approximately `3.141592653589793`| | ||
|phi|**PHI - THE GOLDEN RATIO**<br>Insert [PHI](https://en.wikipedia.org/wiki/Golden_ratio), also known as the Golden Ratio, to the stack. In RPNCalc, Phi is defined as `1.618033989`| | ||
|euler|**EULER'S NUMBER**<br>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)](https://en.wikipedia.org/wiki/E_(mathematical_constant)) onto the stack. e is approximately `2.71828182845`| | ||
|sol|**SPEED OF LIGHT**<br>Inserts the [speed of light](https://en.wikipedia.org/wiki/Speed_of_light), in meters per second, onto the stack in meters/second and is approximately `299,792,458 m/s`| | ||
|Constant| Description | | ||
|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
|pi| **PI - ARCHIMEDES' CONSTANT**<br>[Archimedes' constant, or PI](https://en.wikipedia.org/wiki/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, and Java in general, Pi is approximately `3.141592653589793` | | ||
|phi| **PHI - THE GOLDEN RATIO**<br>If the stack is empty, `phi` will simply insert the [PHI](https://en.wikipedia.org/wiki/Golden_ratio), also known as the Golden Ratio, onto the top of the stack (`line1`). In RPNCalc, Phi is defined as `1.618033989`<br>However, if there is an item on the stack, it will also display the possible long and short section values | | ||
|euler| **EULER'S NUMBER**<br>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)](https://en.wikipedia.org/wiki/E_(mathematical_constant)) onto the stack. e is approximately `2.71828182845` | | ||
|sol| **SPEED OF LIGHT**<br>Inserts the [speed of light](https://en.wikipedia.org/wiki/Speed_of_light), in meters per second, onto the stack in meters/second and is approximately `299,792,458 m/s` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters