Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sozysozbot/a_plus_b_sqrt_n


https://github.com/sozysozbot/a_plus_b_sqrt_n

field-extensions sqrt

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# APlusBSqrtN

Data type for $a + b \sqrt{n} \ (a, b \in \mathbb{Q}, n \in \mathbb{N}_{\ge 0})$, implemented in Rust.

## Operations supported by this library

- addition, subtraction, multiplication, division
- comparison
- floor, ceil, abs

## Note

Note that num-irrational has `num_irrational::quadratic::QuadraticSurd`, which likely serves your needs better.

https://docs.rs/num-irrational/latest/num_irrational/quadratic/struct.QuadraticSurd.html