1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! # gMath — Multi-Domain Fixed-Point Arithmetic Library
//!
//! Zero-float, pure-Rust, consensus-safe fixed-point arithmetic with
//! 18 transcendental functions computed at tier N+1 for full storage-tier precision.
//!
//! ## Canonical API (FASC Pipeline)
//!
//! ```rust,no_run
//! use g_math::canonical::{gmath, evaluate};
//!
//! let result = evaluate(&(gmath("1.5") + gmath("2.5")));
//! let exp_result = evaluate(&gmath("1.0").exp());
//! ```
//!
//! ## Profiles
//!
//! Default is `embedded`. Set `GMATH_PROFILE` for higher precision:
//! - `embedded` (default) — Q64.64, 19 decimals
//! - `balanced` — Q128.128, 38 decimals
//! - `scientific` — Q256.256, 77 decimals
// Internal modules
// Canonical API — the single public entry point
pub use canonical;
/// TQ1.9 compact ternary operations — standalone module for inference and signal processing.
/// Requires the `inference` feature flag.
pub use tq19;
// gmath!() macro — available when g_math_macros is published as a separate crate.
// See g_math_macros/ directory for the proc-macro implementation.
/// Version information
pub const VERSION: &str = env!;