D implementations of tan, atan, and atan2 functions are based on the CEPHES math library, which is Copyright (C) 2001 Stephen L. Moshier <steve@moshier.net≥ and are incorporated herein by permission of the author. The author reserves the right to distribute this material elsewhere under different copying permissions. These modifications are distributed here under the following terms:
std.math.trigonometry
This is a submodule of std.math.
It contains several trigonometric functions.
Copyright
Copyright The D Language Foundation 2000 - 2011.
Functions 46
fn
real sin(real x) @safe pure nothrow @nogcReturns en.wikipedia.org/wiki/Sine of x. x is in en.wikipedia.org/wiki/Radian.fn
real acos(real x) @safe pure nothrow @nogcCalculates the arc cosine of x, returning a value ranging from 0 to .fn
real asin(real x) @safe pure nothrow @nogcCalculates the arc sine of x, returning a value ranging from -/2 to /2.fn
real atan(real x) @safe pure nothrow @nogcCalculates the arc tangent of x, returning a value ranging from -/2 to /2.fn
real atan2(real y, real x) @trusted pure nothrow @nogcCalculates the arc tangent of y / x, returning a value ranging from - to .fn
real atanh(real x) @safe pure nothrow @nogcCalculates the inverse hyperbolic tangent of x, returning a value from ranging from -1 to 1.