File: sinc.qbk

package info (click to toggle)
scipy 1.16.0-1exp7
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 234,820 kB
  • sloc: cpp: 503,145; python: 344,611; ansic: 195,638; javascript: 89,566; fortran: 56,210; cs: 3,081; f90: 1,150; sh: 848; makefile: 785; pascal: 284; csh: 135; lisp: 134; xml: 56; perl: 51
file content (111 lines) | stat: -rw-r--r-- 3,328 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[/ 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_overview Sinus Cardinal and Hyperbolic Sinus Cardinal Functions Overview]

[section sinc_pi]

``
#include <boost/math/special_functions/sinc.hpp>
``

   template<class T> 
   BOOST_MATH_GPU_ENABLED ``__sf_result`` sinc_pi(const T x);

   template<class T, class ``__Policy``> 
   BOOST_MATH_GPU_ENABLED ``__sf_result`` sinc_pi(const T x, const ``__Policy``&);

   template<class T, template<typename> class U> 
   BOOST_MATH_GPU_ENABLED U<T> sinc_pi(const U<T> x);

   template<class T, template<typename> class U, class ``__Policy``> 
   BOOST_MATH_GPU_ENABLED U<T> sinc_pi(const U<T> x, const ``__Policy``&);

Computes 
[link math_toolkit.sinc.sinc_overview 
the Sinus Cardinal] of x:

[expression 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 sinc_pi]


[section sinhc_pi]

``
#include <boost/math/special_functions/sinhc.hpp>
``

   template<class T> 
   BOOST_MATH_GPU_ENABLED ``__sf_result`` sinhc_pi(const T x);

   template<class T, class ``__Policy``> 
   BOOST_MATH_GPU_ENABLED ``__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 sinhc function],
the [link math_toolkit.sinc.sinc_overview  Hyperbolic Sinus Cardinal] of x:

[expression 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] [/section sinhc_pi]

[endsect] [/section:sinc Sinus Cardinal and Hyperbolic Sinus Cardinal Functions]