ajtribick / twofloat Goto Github PK
View Code? Open in Web Editor NEWA double-double arithmetic library for Rust
License: BSD 3-Clause "New" or "Revised" License
A double-double arithmetic library for Rust
License: BSD 3-Clause "New" or "Revised" License
Implementing ComplexField and RealField from the simba
crate will allow usage in nalgebra
(as Vector3<TwoFloat>
etc).
This opens up usage in high-precision simulations, something I need for an application I am building.
Rust stabilized in 1.62 the total_cmp
method that follows the totalOrder
predicate from the IEEE754 spec (v2008, 5.10).
The same method could be added, that calculates the total order for the the high bits first and then the lower bits.
If bumping the MSRV to 1.62 is a problem, it'd be also very easy to reimplement it from scratch.
The current implementation is done in terms of ln
and exp
. This isn't ideal, should figure out how to do it properly.
I was missing several simple constants (0
, 1
, -1
...) and I realized it would be very easy to make a const constructor to allow defining custom constants.
I'll send a PR.
Should be possible to work around the FMA issues with libm
Might be useful to enable a mode that doesn't rely on FMA for multiplications. This might be necessary to address #3
Change from Travis to GitHub Actions
Currently blocked by rust-lang/libm#242
Current implementation of display is very basic, more options would be useful!
Explore using quad-precision to improve the mathematical functions.
It would be very nice to have optionally implemented num-traits
like ToPrimitive, FromPrimitive, Num, Float, FloatCore and Bounded, in a similar way as what the half
crate does.
Add conversions for i128/u128.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.