amath
1.8.5
Simple command line calculator
|
#include "prim.h"
Go to the source code of this file.
Functions | |
complex | csec (complex z) |
Secant of a complex number. More... | |
Secant of a complex number.
Calculated as in Open Office:
https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_IMSEC_function
a+bi 2.0 * cos(a) * cosh(b) real = ---------------------------— cosh(2.0 * b) + cos(2.0 * a)
2.0 * sin(a) * sinh(b) imag = ---------------------------— cosh(2.0 * b) + cos(2.0 * a)
Definition at line 48 of file csec.c.
References cimag(), cos(), cosh(), cpack(), creal(), sin(), and sinh().
Referenced by ComplexNumber::Secant().