https://github.com/munrocket/jampary
JAvascript Multiple Precision Arithmetic libraRY
https://github.com/munrocket/jampary
Last synced: over 1 year ago
JSON representation
JAvascript Multiple Precision Arithmetic libraRY
- Host: GitHub
- URL: https://github.com/munrocket/jampary
- Owner: munrocket
- License: mit
- Created: 2020-01-04T10:33:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T10:44:15.000Z (almost 5 years ago)
- Last Synced: 2025-02-28T13:45:56.061Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 129 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## JAMPARY: JAvascript Multiple Precision Arithmetic libraRY
(Modern arbitrary-precision arithmetic library using floating-point expansions.)
### Disclamer
It's not finished and shows early stage results without FMA
### Benchmark in Chrome 67+

### Benchmark in Safari 14+

[online benchmark](https://munrocket.github.io/jampary/test/benchmark.html)
### 2do
- [x] mvp
- [x] mandel test
- [x] fix mul/div
- [ ] optimization
### Consider BigDecimal based on BigInt, it's very good
https://github.com/Yaffle/BigDecimal
### References
1. Mioara Joldes, Olivier Marty, Jean-Michel Muller, Valentina Popescu,
*Arithmetic algorithms for extended precision using floating-point expansions*, 2015.
[[pdf](https://hal.archives-ouvertes.fr/hal-01111551v2/document)]
2. J.-M. Muller, Valentina Popescu, Ping Tak Peter Tang
*A new multiplication algorithm for extended precision using floating-point expansions*, 2016.
[[pdf](http://perso.ens-lyon.fr/jean-michel.muller/Expansions_ARITH_23.pdf)]
3. J.-M. Muller, N. Brisebarre, F. deDinechin, C.-P. Jeannerod, V. Lefevre etc.,
*Handbook of Floating-Point Arithmetic*, Chapter 14.1.2, 2010.