atmosphere.math

Members

Functions

findLocalMin
Tuple!(T, "x", Unqual!(ReturnType!DF), "y", T, "error") findLocalMin(scope DF f, in T ax, in T bx, in T relTolerance = T.epsilon^^0.25, in T absTolerance = sqrt(T.epsilon))

Find a real minimum of a real function f(x) via bracketing. Given a function f and a range (ax..bx), returns the value of x in the range which is closest to a minimum of f(x). f is never evaluted at the endpoints of ax and bx. If f(x) has more than one minimum in the range, one will be chosen arbitrarily. If f(x) returns NaN or -Infinity, (x, f(x), NaN) will be returned; otherwise, this algorithm is guaranteed to succeed.

logmdigammaInverse
T logmdigammaInverse(const T y)

Inverse of the Log Minus Digamma function

modifiedBesselTemmeSeries
T modifiedBesselTemmeSeries(in T nu, in T x)
modifiedBesselTemmeSeriesImpl
T[2] modifiedBesselTemmeSeriesImpl(in T nu, in T x)
sumOfLog2s
ElementType!Range sumOfLog2s(Range r)

Computes accurate sum of binary logarithms of input range r.

Meta