33 #include <itpp/itexports.h> 42 inline double sinc(
double x)
49 return sin(pix) / pix;
54 inline vec
sin(
const vec &x) {
return apply_function<double>(
std::sin, x); }
56 inline mat
sin(
const mat &x) {
return apply_function<double>(
std::sin, x); }
58 inline vec
cos(
const vec &x) {
return apply_function<double>(
std::cos, x); }
60 inline mat
cos(
const mat &x) {
return apply_function<double>(
std::cos, x); }
62 inline vec
tan(
const vec &x) {
return apply_function<double>(
std::tan, x); }
64 inline mat
tan(
const mat &x) {
return apply_function<double>(
std::tan, x); }
66 inline vec
asin(
const vec &x) {
return apply_function<double>(
std::asin, x); }
68 inline mat
asin(
const mat &x) {
return apply_function<double>(
std::asin, x); }
70 inline vec
acos(
const vec &x) {
return apply_function<double>(
std::acos, x); }
72 inline mat
acos(
const mat &x) {
return apply_function<double>(
std::acos, x); }
74 inline vec
atan(
const vec &x) {
return apply_function<double>(
std::atan, x); }
76 inline mat
atan(
const mat &x) {
return apply_function<double>(
std::atan, x); }
78 inline vec
sinc(
const vec &x) {
return apply_function<double>(
sinc, x); }
80 inline mat
sinc(
const mat &x) {
return apply_function<double>(
sinc, x); }
89 inline vec
sinh(
const vec &x) {
return apply_function<double>(
std::sinh, x); }
91 inline mat
sinh(
const mat &x) {
return apply_function<double>(
std::sinh, x); }
93 inline vec
cosh(
const vec &x) {
return apply_function<double>(
std::cosh, x); }
95 inline mat
cosh(
const mat &x) {
return apply_function<double>(
std::cosh, x); }
97 inline vec
tanh(
const vec &x) {
return apply_function<double>(
std::tanh, x); }
99 inline mat
tanh(
const mat &x) {
return apply_function<double>(
std::tanh, x); }
101 ITPP_EXPORT vec
asinh(
const vec &x);
103 ITPP_EXPORT mat
asinh(
const mat &x);
105 ITPP_EXPORT vec
acosh(
const vec &x);
107 ITPP_EXPORT mat
acosh(
const mat &x);
109 ITPP_EXPORT vec
atanh(
const vec &x);
111 ITPP_EXPORT mat
atanh(
const mat &x);
117 #endif // #ifndef TRIG_HYP_H vec cosh(const vec &x)
Cosine hyperbolic function.
vec acos(const vec &x)
Inverse cosine function.
Help functions to make functions with vec and mat as arguments.
vec tan(const vec &x)
Tan function.
mat atan(const mat &x)
Inverse tan function.
double sinc(double x)
Sinc function: sinc(x) = sin(pi*x)/pi*x.
mat acos(const mat &x)
Inverse cosine function.
mat cosh(const mat &x)
Cosine hyperbolic function.
mat sinh(const mat &x)
Sine hyperbolic function.
vec atanh(const vec &x)
Inverse tan hyperbolic function.
vec asin(const vec &x)
Inverse sine function.
vec asinh(const vec &x)
Inverse sine hyperbolic function.
mat asin(const mat &x)
Inverse sine function.
vec sin(const vec &x)
Sine function.
const double pi
Constant Pi.
mat cos(const mat &x)
Cosine function.
vec acosh(const vec &x)
Inverse cosine hyperbolic function.
vec atan(const vec &x)
Inverse tan function.
vec sinh(const vec &x)
Sine hyperbolic function.
vec tanh(const vec &x)
Tan hyperbolic function.
mat tan(const mat &x)
Tan function.
vec cos(const vec &x)
Cosine function.
mat tanh(const mat &x)
Tan hyperbolic function.
mat sin(const mat &x)
Sine function.