Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
std.math
Elementary mathematical functions Contains the elementary mathematical functions (powers, roots, and trignometric functions), and low-level floating-point operations. Mathematical special functions are available in std.mathspecial. The functionality closely follows the IEEE754-2008 standard for floating-point arithmetic, including the use of camelCase names rather than C99-style lower case names. All of these functions behave correctly when presented with an infinity or NaN. Unlike C, there is no global 'errno' variable. Consequently, almost all of these functions are pure nothrow. Status:The semantics and names of feqrel and approxEqual will be revised. License:
Boost License 1.0. Authors:
Walter Bright, Don Clugston, Conversion of CEPHES math library to D by Iain Buclaw Source:
std/math.d