trig_hyp.h
Go to the documentation of this file.
#ifndef TRIG_HYP_H
#define TRIG_HYP_H
#include <itpp/base/help_functions.h>
#include <itpp/itexports.h>
namespace itpp
{
inline double sinc(double x)
{
if (x == 0) {
return 1.0;
}
else {
double pix = itpp::pi * x;
return sin(pix) / pix;
}
}
inline vec sin(const vec &x) { return apply_function<double>(std::sin, x); }
inline mat sin(const mat &x) { return apply_function<double>(std::sin, x); }
inline vec cos(const vec &x) { return apply_function<double>(std::cos, x); }
inline mat cos(const mat &x) { return apply_function<double>(std::cos, x); }
inline vec tan(const vec &x) { return apply_function<double>(std::tan, x); }
inline mat tan(const mat &x) { return apply_function<double>(std::tan, x); }
inline vec asin(const vec &x) { return apply_function<double>(std::asin, x); }
inline mat asin(const mat &x) { return apply_function<double>(std::asin, x); }
inline vec acos(const vec &x) { return apply_function<double>(std::acos, x); }
inline mat acos(const mat &x) { return apply_function<double>(std::acos, x); }
inline vec atan(const vec &x) { return apply_function<double>(std::atan, x); }
inline mat atan(const mat &x) { return apply_function<double>(std::atan, x); }
inline vec sinc(const vec &x) { return apply_function<double>(sinc, x); }
inline mat sinc(const mat &x) { return apply_function<double>(sinc, x); }
inline vec sinh(const vec &x) { return apply_function<double>(std::sinh, x); }
inline mat sinh(const mat &x) { return apply_function<double>(std::sinh, x); }
inline vec cosh(const vec &x) { return apply_function<double>(std::cosh, x); }
inline mat cosh(const mat &x) { return apply_function<double>(std::cosh, x); }
inline vec tanh(const vec &x) { return apply_function<double>(std::tanh, x); }
inline mat tanh(const mat &x) { return apply_function<double>(std::tanh, x); }
ITPP_EXPORT vec asinh(const vec &x);
ITPP_EXPORT mat asinh(const mat &x);
ITPP_EXPORT vec acosh(const vec &x);
ITPP_EXPORT mat acosh(const mat &x);
ITPP_EXPORT vec atanh(const vec &x);
ITPP_EXPORT mat atanh(const mat &x);
} // namespace itpp
#endif // #ifndef TRIG_HYP_H
itpp::atan
vec atan(const vec &x)
Inverse tan function.
Definition: trig_hyp.h:74
itpp::cos
mat cos(const mat &x)
Cosine function.
Definition: trig_hyp.h:60
itpp::asin
mat asin(const mat &x)
Inverse sine function.
Definition: trig_hyp.h:68
itpp::cosh
vec cosh(const vec &x)
Cosine hyperbolic function.
Definition: trig_hyp.h:93
itpp::cosh
mat cosh(const mat &x)
Cosine hyperbolic function.
Definition: trig_hyp.h:95
itpp::sinh
mat sinh(const mat &x)
Sine hyperbolic function.
Definition: trig_hyp.h:91
itpp
itpp namespace
Definition: itmex.h:36
itpp::acos
mat acos(const mat &x)
Inverse cosine function.
Definition: trig_hyp.h:72
itpp::atanh
vec atanh(const vec &x)
Inverse tan hyperbolic function.
Definition: trig_hyp.cpp:44
itpp::asinh
vec asinh(const vec &x)
Inverse sine hyperbolic function.
Definition: trig_hyp.cpp:36
itpp::tan
vec tan(const vec &x)
Tan function.
Definition: trig_hyp.h:62
itpp::sin
vec sin(const vec &x)
Sine function.
Definition: trig_hyp.h:54
itpp::atan
mat atan(const mat &x)
Inverse tan function.
Definition: trig_hyp.h:76
itpp::pi
const double pi
Constant Pi.
Definition: misc.h:103
itpp::sinc
double sinc(double x)
Sinc function: sinc(x) = sin(pi*x)/pi*x.
Definition: trig_hyp.h:42
itpp::acosh
vec acosh(const vec &x)
Inverse cosine hyperbolic function.
Definition: trig_hyp.cpp:40
itpp::tan
mat tan(const mat &x)
Tan function.
Definition: trig_hyp.h:64
itpp::asin
vec asin(const vec &x)
Inverse sine function.
Definition: trig_hyp.h:66
help_functions.h
Help functions to make functions with vec and mat as arguments.
itpp::sinh
vec sinh(const vec &x)
Sine hyperbolic function.
Definition: trig_hyp.h:89
itpp::cos
vec cos(const vec &x)
Cosine function.
Definition: trig_hyp.h:58
itpp::tanh
mat tanh(const mat &x)
Tan hyperbolic function.
Definition: trig_hyp.h:99
itpp::acos
vec acos(const vec &x)
Inverse cosine function.
Definition: trig_hyp.h:70
itpp::tanh
vec tanh(const vec &x)
Tan hyperbolic function.
Definition: trig_hyp.h:97
itpp::sin
mat sin(const mat &x)
Sine function.
Definition: trig_hyp.h:56

Generated on Mon Mar 23 2020 06:18:03 for IT++ by Doxygen 1.8.17