| Crates.io | tuppu-scalar |
| lib.rs | tuppu-scalar |
| version | 0.1.0 |
| created_at | 2025-12-05 10:11:33.247159+00 |
| updated_at | 2025-12-05 10:11:33.247159+00 |
| description | Exact scalar arithmetic with rational numbers and uncertainty tracking for geometric algebra |
| homepage | |
| repository | https://github.com/rikii/tuppu-nabu |
| max_upload_size | |
| id | 1967971 |
| size | 122,575 |
Exact scalar arithmetic with rational numbers and uncertainty tracking for geometric algebra.
Part of the Tuppu Nabu geometric algebra system.
use tuppu_scalar::Scalar;
let a = Scalar::from(3) / Scalar::from(7);
let b = Scalar::pi() / Scalar::from(4);
// Exact arithmetic — no floating point errors
assert_eq!(a * Scalar::from(7), Scalar::from(3));
MIT OR Apache-2.0