View source code
Display the source code in std/math/exponential.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
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.
Module std.math.exponential
This is a submodule of std
.
It contains several exponential and logarithm functions.
Functions
Name | Description |
---|---|
exp(x)
|
Calculates ex. |
exp2(x)
|
Calculates 2x. |
expm1(x)
|
Calculates the value of the natural logarithm base (e) raised to the power of x, minus 1. |
frexp(value, exp)
|
Separate floating point value into significand and exponent. |
ilogb(x)
|
Extracts the exponent of x as a signed integral value. |
ldexp(n, exp)
|
Compute n * 2exp |
log(x)
|
Calculate the natural logarithm of x. |
log10(x)
|
Calculate the base-10 logarithm of x. |
log1p(x)
|
Calculates the natural logarithm of 1 + x. |
log2(x)
|
Calculates the base-2 logarithm of x: ⊂x |
logb(x)
|
Extracts the exponent of x as a signed integral value. |
pow(x, n)
|
Compute the value of x n, where n is an integer |
pow(x, n)
|
Compute the power of two integral numbers. |
pow(x, y)
|
Computes integer to floating point powers. |
pow(x, y)
|
Calculates xy. |
powmod(x, n, m)
|
Computes the value of a positive integer x , raised to the power n , modulo m .
|
scalbn(x, n)
|
Efficiently calculates x * 2n. |
Aliases
Name | Type | Description |
---|---|---|
FP_ILOGB0
|
core
|
Special return values of ilogb .
|
FP_ILOGBNAN
|
core
|
Special return values of ilogb .
|
Authors
Walter Bright, Don Clugston, Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
License
Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.