herbie
ibig-rs
herbie | ibig-rs | |
---|---|---|
6 | 5 | |
729 | 99 | |
1.4% | - | |
9.9 | 6.5 | |
3 days ago | 7 months ago | |
HTML | Rust | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
herbie
- Herbie: Find and fix floating-point accuracy problems
-
Towards a New SymPy
The herbie project using egraphs to explore different ways of rewriting floating point expressions. https://herbie.uwplse.org/ One can also write custom rulesets in egglog (a new egraph rewriting system / language / datalog) https://egraphs-good.github.io/egglog/?example=herbie
The approach is not yet anywhere near being able to touch all the domains sympy can handle. Destructive term rewriting tends to be a bit more forgiving to unsoundness in the rules and still returning roughly meaningful results. EGraph rewriting (and other automated reasoning systems) tend to just return junk as soon as you aren't careful about your semantics. Associativity and commutativity are ubiquitous in CAS applications and encoding these concepts in general purpose terms is rather unsatisfying. The post above emphasizes specialty methods for polynomials, which it would be desirable to find a clean way to integrate into egraph techniques. Variable binding (which is treated in a rather mangled form in CAS systems) is seemingly important for treating summation, differentiation, and integration correctly. The status of doing variable binding efficiently and correctly in egraphs is also unclear imo.
-
Q: Automated floating point error analysis
As a starting point, check Herbie: https://herbie.uwplse.org/
-
Someone’s Been Messing with My Subnormals
Here is a really cool automatic tool that rewrites floating point expressions to be more accurate: https://herbie.uwplse.org/
-
Multiple precision floating point library
On a related note, see tools like Herbie which rewrite floating point expressions to improve accuracy without altering the underlying data-type. It's worth being aware that sometimes you get really bad diminishing returns from using bigger floats and what you really need to do is to rewrite the calculation to avoid a weakness of floating point representation, see numerically unstable calculations.
- Herbie – optimize floating-point expressions for accuracy
ibig-rs
-
Multiple precision floating point library
Have you performed benchmarks for this? I imagine it would be nice to have something similar to the big integer benchmarks provided by ibig.
-
Announcing Malachite, a new arbitrary-precision arithmetic library
I'm adding your crate to the bigint benchmark, you can find some results on the PR page.
-
What's the best library for long number division?
rug requires libc and GMP (which may be a good or bad thing depending on needs), and ramp requires nightly and is no longer maintained. For big integers, ibig has worked out for me with other operations, but I haven't looked closely at what its strategy is for division is yet.
-
Best library for multiplication of big unsigned integers
Checkout https://github.com/tczajka/ibig-rs — it’s a pure Rust crate which builds on stable, and is pretty fast.
What are some alternatives?
bigint-benchmark-rs - Bechmarks for Rust big integer implementations
rust-gmp
egglog - egraphs + datalog!
MuladdMacro.jl - This package contains a macro for converting expressions to use muladd calls and fused-multiply-add (FMA) operations for high-performance in the SciML scientific machine learning ecosystem
gmp-wasm - Fork of the GNU Multiple Precision Arithmetic Library (GMP), suitable for compilation into WebAssembly.
r6rs
Rust-CAS - Rust Computer Algebra library
crates.io - The Rust package registry
Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
Random - Repository of Random, Useful, or Novel Functions