This repository was archived by the owner on Dec 27, 2023. It is now read-only.
This repository was archived by the owner on Dec 27, 2023. It is now read-only.
[WIP] Add important numerical constants #14
Open
Description
A list of important numerical constants.
Interfaces
- Zero
- One
- PI
- E
- Euler - Mascheroni Constant
- Golden Ratio
- Silver Ratio
- Light Speed
Arbitrary precision (via $scale
parameter)
- PI
- E
- Euler - Mascheroni Constant
- Golden Ratio
- Silver Ratio
Integration with Decimal
- Use the
Zero
constant instead of creating new zero objects inside Decimal methods. - Use the
One
constant instead of creating new one objects inside Decimal methods.
The non-phisical numerical constants must be associated to a method with the following signature:
public static function ConstantName($scale);
This methods will allow to specify how many digits we want for every one of the supported numerical constants.