Crates.io | dyadic-rationals |
lib.rs | dyadic-rationals |
version | 0.1.2 |
source | src |
created_at | 2024-10-31 22:39:50.151337 |
updated_at | 2024-11-05 18:40:47.323332 |
description | Binary and Dyadic rational expressions (with binders) in Rust |
homepage | |
repository | |
max_upload_size | |
id | 1431017 |
size | 67,541 |
dyadic-rationals is a Rust library for performing symbolic algebra with dyadic rational numbers. Dyadic rationals, or binary rationals, are numbers that can be expressed as fractions with a power of two as the denominator (e.g., 1/2
, 3/2
, 3/8
). These numbers have finite binary representations, making them ideal for precise approximations in computer science and mathematics.
Dyadic rationals form a ring, closed under addition, subtraction, multiplication, and division by powers of two. These properties make dyadic rationals valuable in applications requiring precise, finite representations, including numerical analysis, cryptography, and formal verification.