DoxigAlpha

atanh

Returns the hyperbolic arc-tangent of z.

Function parameters

Parameters

#
z:anytype

Returns the hyperbolic arc-tangent of z.

Functions

#
atanh
Returns the hyperbolic arc-tangent of z.

Source

Implementation

#
pub fn atanh(z: anytype) Complex(@TypeOf(z.re, z.im)) {
    const T = @TypeOf(z.re, z.im);
    const q = Complex(T).init(-z.im, z.re);
    const r = cmath.atan(q);
    return Complex(T).init(r.im, -r.re);
}