tuppu-scalar

Crates.iotuppu-scalar
lib.rstuppu-scalar
version0.1.0
created_at2025-12-05 10:11:33.247159+00
updated_at2025-12-05 10:11:33.247159+00
descriptionExact scalar arithmetic with rational numbers and uncertainty tracking for geometric algebra
homepage
repositoryhttps://github.com/rikii/tuppu-nabu
max_upload_size
id1967971
size122,575
(rickKase)

documentation

README

tuppu-scalar

Exact scalar arithmetic with rational numbers and uncertainty tracking for geometric algebra.

Part of the Tuppu Nabu geometric algebra system.

Features

  • Exact rational arithmetic — No floating-point errors
  • Symbolic constants — π, √2, √3 preserved exactly
  • Uncertainty tracking — Propagate measurement uncertainty
  • Clean API — Natural Rust operators

Usage

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));

License

MIT OR Apache-2.0

Commit count: 0

cargo fmt