View source code
Display the source code in std/math/trigonometry.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.trigonometry
This is a submodule of std
.
It contains several trigonometric functions.
Functions
Name | Description |
---|---|
acos(x)
|
Calculates the arc cosine of x, returning a value ranging from 0 to π. |
acosh(x)
|
Calculates the inverse hyperbolic cosine of x. |
asin(x)
|
Calculates the arc sine of x, returning a value ranging from -π/2 to π/2. |
asinh(x)
|
Calculates the inverse hyperbolic sine of x. |
atan(x)
|
Calculates the arc tangent of x, returning a value ranging from -π/2 to π/2. |
atan2(y, x)
|
Calculates the arc tangent of y / x, returning a value ranging from -π to π. |
atanh(x)
|
Calculates the inverse hyperbolic tangent of x, returning a value from ranging from -1 to 1. |
cos(x)
|
Returns cosine of x. x is in radians. |
cosh(x)
|
Calculates the hyperbolic cosine of x. |
sin(x)
|
Returns sine of x. x is in radians. |
sinh(x)
|
Calculates the hyperbolic sine of x. |
tan(x)
|
Returns tangent of x. x is in radians. |
tanh(x)
|
Calculates the hyperbolic tangent of x. |
Authors
Walter Bright, Don Clugston, Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.