Math -- Mathematics Library

The Math library contains functions providing overloaded entry points for the standard C math library and convenient ways to generate random numbers, and classes providing type-safe ways to get math constants and numerical type limits.

Header Files

Math.h
Math.h contains overloaded entry points for standard C math functions, and some convenience functions.
Constants.h
Constants.h defines a generic class Constants containing numerical limits of atomic types and mathematical constants for floating-point types.
Interval.h
Interval is a class representing fully closed intervals, templatized by the underlying scalar type. Interval provides constructors, comparison operators, set arithmetic on intervals, and some interval arithmetic operators.
BrokenLine.h
BrokenLine is a class describing constant piecewise linear mappings from a source interval to the interval [-1, 1] using a "broken line" model with two linear ramps and a flat "dead zone" in the middle.
Random.h
Random.h contains convenience functions to create random numbers of different distributions.