Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sozysozbot/a_plus_b_sqrt_n
https://github.com/sozysozbot/a_plus_b_sqrt_n
field-extensions sqrt
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sozysozbot/a_plus_b_sqrt_n
- Owner: sozysozbot
- License: mit
- Created: 2023-12-17T15:51:29.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-26T21:57:35.000Z (4 months ago)
- Last Synced: 2024-08-01T17:39:13.500Z (3 months ago)
- Topics: field-extensions, sqrt
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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