Module math

Module math 

Source
Expand description

Math abstraction layer for no_std compatibility.

This module provides trait-based math operations that can be backed by different implementations depending on the target environment and feature flags:

  • floating-point: Full floating-point math using micromath
  • libm-math: Alternative floating-point using libm
  • fixed-point: Fixed-point arithmetic using the fixed crate
  • integer-math: Integer-only math for the most constrained environments
  • cordic-math: CORDIC-based trigonometric functions

Re-exports§

pub use traits::FloatLike;
pub use traits::MathOps;
pub use traits::TrigOps;
pub use backends::*;

Modules§

backends
Math backend implementations for different numeric types and feature configurations.
interpolation
Curve interpolation algorithms for smooth data visualization.
traits
Math operation traits for different numeric backends.

Structs§

Math
Math operations provider - selects the appropriate backend based on features

Traits§

NumericConversion
Type conversion utilities for different numeric types

Type Aliases§

Number
Primary numeric type used throughout the library