Table of Contents

Namespace Utils.Mathematics

Classes

FloatingPointComparer<T>

Provides floating-point comparisons that allow for small deviations using a configurable interval. Implements only IComparer<T>: fuzzy equality cannot be used for hashing.

MathEx

Provides extended mathematical functions and utilities, including custom rounding, clamping, and Pascal's triangle generation.

NullableIntEx

Provides helper methods for working with nullable numeric endpoints that can represent open ranges by treating null as positive or negative infinity as needed.

NumericalMethods

Numerical integration and interpolation utilities.

Polynomial<T>

Represents a polynomial with coefficients of type T. Coefficients are stored as [a₀, a₁, …, aₙ] representing a₀ + a₁x + … + aₙxⁿ.

Statistics

Descriptive statistics computed over sequences of floating-point values.

Trigonometry<T>

Provides a base implementation of IAngleCalculator<T> for custom angle measures such as Degrees or Grades, along with default trigonometric/hyperbolic implementations.

Interfaces

IAngleCalculator<T>

Provides an interface for angle-based calculations in various units (Radians, Degrees, Grades). Includes standard and extended trigonometric, hyperbolic, and inverse functions.