View source code
Display the source code in std/complex.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.
Function std.complex.sinh
Hyperbolic trigonometric functions on complex numbers.
Parameters
Name | Description |
---|---|
z | A complex number. |
Returns
The hyperbolic sine, cosine and tangent of z
, respectively.
Example
static import std .math;
writeln(sinh(complex(0.0))); // 0.0
writeln(sinh(complex(1.0L))); // std.math.sinh(1.0L)
writeln(sinh(complex(1.0f))); // std.math.sinh(1.0f)
Example
static import std .math;
writeln(cosh(complex(0.0))); // 1.0
writeln(cosh(complex(1.0L))); // std.math.cosh(1.0L)
writeln(cosh(complex(1.0f))); // std.math.cosh(1.0f)
Example
import std .math .operations : isClose;
import std .math .trigonometry : std_math_tanh = tanh;
writeln(tanh(complex(0.0))); // 0.0
assert(isClose(tanh(complex(1.0L)), std_math_tanh(1.0L)));
assert(isClose(tanh(complex(1.0f)), std_math_tanh(1.0f)));
Authors
Lars Tandle Kyllingstad, Don Clugston
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.