diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /boost/libs/math/doc/sf/sinc.qbk | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/libs/math/doc/sf/sinc.qbk')
| -rw-r--r-- | boost/libs/math/doc/sf/sinc.qbk | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/boost/libs/math/doc/sf/sinc.qbk b/boost/libs/math/doc/sf/sinc.qbk new file mode 100644 index 00000000..4a83df0e --- /dev/null +++ b/boost/libs/math/doc/sf/sinc.qbk @@ -0,0 +1,110 @@ +[/ math.qbk + Copyright 2006 Hubert Holin and John Maddock. + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or copy at + http://www.boost.org/LICENSE_1_0.txt). +] + +[section:sinc Sinus Cardinal and Hyperbolic Sinus Cardinal Functions] + +[section:sinc_overview Sinus Cardinal and Hyperbolic Sinus Cardinal Functions Overview] + +The [@http://mathworld.wolfram.com/SincFunction.html Sinus Cardinal family of functions] +(indexed by the family of indices [^a > 0]) +is defined by + +[equation special_functions_blurb20] + +it sees heavy use in signal processing tasks. + +By analogy, the +[@http://mathworld.wolfram.com/SinhcFunction.htm Hyperbolic Sinus Cardinal] +family of functions +(also indexed by the family of indices [^a > 0]) is defined by + +[equation special_functions_blurb22] + +These two families of functions are composed of entire functions. + +These functions (__sinc_pi and __sinhc_pi) are needed by +[@http://www.boost.org/libs/math/quaternion/quaternion.html our implementation] +of [@http://mathworld.wolfram.com/Quaternion.html quaternions] +and [@http://mathworld.wolfram.com/Octonion.html octonions]. + +[: ['[*Sinus Cardinal of index pi (purple) and Hyperbolic Sinus Cardinal of index pi (red) on R]]] +[: [$../graphs/sinc_pi_and_sinhc_pi_on_r.png]] + +[endsect] + +[section sinc_pi] + +`` +#include <boost/math/special_functions/sinc.hpp> +`` + + template<class T> + ``__sf_result`` sinc_pi(const T x); + + template<class T, class ``__Policy``> + ``__sf_result`` sinc_pi(const T x, const ``__Policy``&); + + template<class T, template<typename> class U> + U<T> sinc_pi(const U<T> x); + + template<class T, template<typename> class U, class ``__Policy``> + U<T> sinc_pi(const U<T> x, const ``__Policy``&); + +Computes +[link math_toolkit.sinc.sinc_overview +the Sinus Cardinal] of x: + + sinc_pi(x) = sin(x) / x + +The second form is for complex numbers, +quaternions, octonions etc. Taylor series are used at the origin +to ensure accuracy. + +[graph sinc_pi] + +[optional_policy] + +[endsect] + +[section sinhc_pi] + +`` +#include <boost/math/special_functions/sinhc.hpp> +`` + + template<class T> + ``__sf_result`` sinhc_pi(const T x); + + template<class T, class ``__Policy``> + ``__sf_result`` sinhc_pi(const T x, const ``__Policy``&); + + template<typename T, template<typename> class U> + U<T> sinhc_pi(const U<T> x); + + template<class T, template<typename> class U, class ``__Policy``> + U<T> sinhc_pi(const U<T> x, const ``__Policy``&); + +Computes http://mathworld.wolfram.com/SinhcFunction.html +[link math_toolkit.sinc.sinc_overview +the Hyperbolic Sinus Cardinal] of x: + + sinhc_pi(x) = sinh(x) / x + +The second form is for +complex numbers, quaternions, octonions etc. Taylor series are used at the origin +to ensure accuracy. + +The return type of the first form is computed using the __arg_promotion_rules +when T is an integer type. + +[optional_policy] + +[graph sinhc_pi] + +[endsect] + +[endsect] |
