quantities.math

This module defines common math operations on quantities.

Members

Functions

abs
Q abs(Q quantity)
cbrt
auto cbrt(Q quantity)
cubic
auto cubic(Q quantity)
nthRoot
auto nthRoot(Q quantity)

Basic math functions that work with Quantities where N is a builtin floating point type.

pow
auto pow(Q quantity)
Undocumented in source. Be warned that the author may not have intended to support it.
sqrt
auto sqrt(Q quantity)

Basic math functions that work with Quantities where N is a builtin floating point type.

square
auto square(Q quantity)

Basic math functions that work with Quantities where N is a builtin floating point type.

Templates

Cubic
template Cubic(Q)

Utility templates to manipulate quantity types.

Inverse
template Inverse(Q)
Product
template Product(Q1, Q2)
Quotient
template Quotient(Q1, Q2)
Square
template Square(Q)

Utility templates to manipulate quantity types.

Meta

Authors

Nicolas Sicard