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