___ _________ __ ____ / _ ) / _/ ___/ __ / // __/ / _ |_/ // (_ /_/ // /_\ \ /____//___/\___/(_)___//___/
new Big("123.456"); // --> [Object]
Big.parse("567.890"); // --> [Object]
Version 0.7.*: lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, equals
Version 0.8.*: plus, minus, negate, clone
The unit test suite is a stratified-randomized differential tester which runs in UNIX environments and is designed for the VT100 shell (for colors). It has a small list of system requirements.
The "apcalc" UNIX utility. On debian variants it can be installed with the command "apt-get install apcalc". It is a programming language built around an infinite precision math library used here as an "oracle" for the differential testing.
To run the unit tests, first navigate to the root of the project and run:
Then, navigate to tests/differential and run:
You can specify how many tests to run by adding an argument:
- Convert to Node.js module for NPM
- Convert multiplication to FFT
- Trigonometric functions
- Base parsing