quantities.math

This module defines common math operations on quantities.

Members

Mixin templates

MathFunctions
mixintemplate MathFunctions(N, string module_ = "std.math")

Mixin template that introduces math functions operating on a quantity of value type N in the current scope. Each function imports module_ internally. This module should contain the math primitives that can operate on the variables of type N, such as sqrt, cbrt, pow and fabs.

Templates

Cubic
template Cubic(Q, N = real)

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