Returns the tangent of z.
pub fn tan(z: anytype) Complex(@TypeOf(z.re, z.im))
pub fn tan(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.tanh(q); return Complex(T).init(r.im, -r.re); }