fixed_analytics
Fixed-point mathematical functions using the CORDIC algorithm. Designed for embedded systems and environments without hardware floating-point support.
Examples
use I16F16;
use ;
let angle = I16F16from_num;
let = ;
let root = sqrt; // ≈ 1.414
let log = ln.unwrap; // ≈ 1.0
Installation
Requires Rust 1.88 or later.
[]
= "0.1"
For no_std environments:
[]
= { = "0.1", = false }
Details
| Category | Functions |
|---|---|
| Trigonometric | sin, cos, tan, sin_cos, asin, acos, atan, atan2 |
| Hyperbolic | sinh, cosh, tanh, coth, sinh_cosh, asinh, acosh, atanh, acoth |
| Exponential | exp, ln, log2, log10 |
| Algebraic | sqrt |