4.8 Complex trigonometric functions
The standard trigonometric functions are supported for complex numbers.
complex
cos
(complex z)
Return the complex cosine of z, which is
cos(z)=cosh(zi)=exp(zi)+exp(−zi)2.
Available since 2.28
complex
sin
(complex z)
Return the complex sine of z,
sin(z)=−sinh(zi)i=exp(zi)−exp(−zi)2i.
Available since 2.28
complex
tan
(complex z)
Return the complex tangent of z,
tan(z)=−tanh(zi)i=(exp(−zi)−exp(zi))iexp(−zi)+exp(zi).
Available since 2.28
complex
acos
(complex z)
Return the complex arc (inverse) cosine of z,
acos(z)=12π+log(zi+√1−z2)i.
Available since 2.28
complex
asin
(complex z)
Return the complex arc (inverse) sine of z,
asin(z)=−log(zi+√1−z2)i.
Available since 2.28
complex
atan
(complex z)
Return the complex arc (inverse) tangent of z,
atan(z)=−12(log(1−zi)−log(1+zi))i.
Available since 2.28