3146
|
1 /* |
|
2 |
|
3 Copyright (C) 1996, 1997 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_liboctave_specfun_h) |
|
24 #define octave_liboctave_specfun_h 1 |
|
25 |
3220
|
26 #include "oct-cmplx.h" |
|
27 |
|
28 template <class T> class Array2; |
3146
|
29 class Matrix; |
3220
|
30 class ComplexMatrix; |
|
31 class RowVector; |
|
32 class ComplexColumnVector; |
3146
|
33 class Range; |
|
34 |
|
35 #if !defined (HAVE_ACOSH) |
|
36 extern double acosh (double); |
|
37 #endif |
|
38 |
|
39 #if !defined (HAVE_ASINH) |
|
40 extern double asinh (double); |
|
41 #endif |
|
42 |
|
43 #if !defined (HAVE_ATANH) |
|
44 extern double atanh (double); |
|
45 #endif |
|
46 |
|
47 #if !defined (HAVE_ERF) |
|
48 extern double erf (double); |
|
49 #endif |
|
50 |
|
51 #if !defined (HAVE_ERFC) |
|
52 extern double erfc (double); |
|
53 #endif |
|
54 |
3156
|
55 extern double xgamma (double x); |
|
56 extern double xlgamma (double x); |
3146
|
57 |
3220
|
58 extern Complex |
|
59 besselj (double alpha, const Complex& x, bool scaled, int& ierr); |
|
60 |
|
61 extern Complex |
|
62 bessely (double alpha, const Complex& x, bool scaled, int& ierr); |
|
63 |
|
64 extern Complex |
|
65 besseli (double alpha, const Complex& x, bool scaled, int& ierr); |
|
66 |
|
67 extern Complex |
|
68 besselk (double alpha, const Complex& x, bool scaled, int& ierr); |
|
69 |
|
70 extern Complex |
|
71 besselh1 (double alpha, const Complex& x, bool scaled, int& ierr); |
|
72 |
|
73 extern Complex |
|
74 besselh2 (double alpha, const Complex& x, bool scaled, int& ierr); |
|
75 |
|
76 extern ComplexMatrix |
|
77 besselj (double alpha, const ComplexMatrix& x, bool scaled, |
|
78 Array2<int>& ierr); |
|
79 |
|
80 extern ComplexMatrix |
|
81 bessely (double alpha, const ComplexMatrix& x, bool scaled, |
|
82 Array2<int>& ierr); |
|
83 |
|
84 extern ComplexMatrix |
|
85 besseli (double alpha, const ComplexMatrix& x, bool scaled, |
|
86 Array2<int>& ierr); |
|
87 |
|
88 extern ComplexMatrix |
|
89 besselk (double alpha, const ComplexMatrix& x, bool scaled, |
|
90 Array2<int>& ierr); |
|
91 |
|
92 extern ComplexMatrix |
|
93 besselh1 (double alpha, const ComplexMatrix& x, bool scaled, |
|
94 Array2<int>& ierr); |
|
95 |
|
96 extern ComplexMatrix |
|
97 besselh2 (double alpha, const ComplexMatrix& x, bool scaled, |
|
98 Array2<int>& ierr); |
|
99 |
|
100 extern ComplexMatrix |
|
101 besselj (const Matrix& alpha, const Complex& x, bool scaled, |
|
102 Array2<int>& ierr); |
|
103 |
|
104 extern ComplexMatrix |
|
105 bessely (const Matrix& alpha, const Complex& x, bool scaled, |
|
106 Array2<int>& ierr); |
|
107 |
|
108 extern ComplexMatrix |
|
109 besseli (const Matrix& alpha, const Complex& x, bool scaled, |
|
110 Array2<int>& ierr); |
|
111 |
|
112 extern ComplexMatrix |
|
113 besselk (const Matrix& alpha, const Complex& x, bool scaled, |
|
114 Array2<int>& ierr); |
3146
|
115 |
3220
|
116 extern ComplexMatrix |
|
117 besselh1 (const Matrix& alpha, const Complex& x, bool scaled, |
|
118 Array2<int>& ierr); |
|
119 |
|
120 extern ComplexMatrix |
|
121 besselh2 (const Matrix& alpha, const Complex& x, bool scaled, |
|
122 Array2<int>& ierr); |
|
123 |
|
124 extern ComplexMatrix |
|
125 besselj (const Matrix& alpha, const ComplexMatrix& x, bool scaled, |
|
126 Array2<int>& ierr); |
|
127 |
|
128 extern ComplexMatrix |
|
129 bessely (const Matrix& alpha, const ComplexMatrix& x, bool scaled, |
|
130 Array2<int>& ierr); |
|
131 |
|
132 extern ComplexMatrix |
|
133 besseli (const Matrix& alpha, const ComplexMatrix& x, bool scaled, |
|
134 Array2<int>& ierr); |
|
135 |
|
136 extern ComplexMatrix |
|
137 besselk (const Matrix& alpha, const ComplexMatrix& x, bool scaled, |
|
138 Array2<int>& ierr); |
|
139 |
|
140 extern ComplexMatrix |
|
141 besselh1 (const Matrix& alpha, const ComplexMatrix& x, bool scaled, |
|
142 Array2<int>& ierr); |
|
143 |
|
144 extern ComplexMatrix |
|
145 besselh2 (const Matrix& alpha, const ComplexMatrix& x, bool scaled, |
|
146 Array2<int>& ierr); |
|
147 |
|
148 extern ComplexMatrix |
|
149 besselj (const RowVector& alpha, const ComplexColumnVector& x, bool scaled, |
|
150 Array2<int>& ierr); |
|
151 |
|
152 extern ComplexMatrix |
|
153 bessely (const RowVector& alpha, const ComplexColumnVector& x, bool scaled, |
|
154 Array2<int>& ierr); |
|
155 |
|
156 extern ComplexMatrix |
|
157 besseli (const RowVector& alpha, const ComplexColumnVector& x, bool scaled, |
|
158 Array2<int>& ierr); |
|
159 |
|
160 extern ComplexMatrix |
|
161 besselk (const RowVector& alpha, const ComplexColumnVector& x, bool scaled, |
|
162 Array2<int>& ierr); |
|
163 |
|
164 extern ComplexMatrix |
|
165 besselh1 (const RowVector& alpha, const ComplexColumnVector& x, bool scaled, |
|
166 Array2<int>& ierr); |
|
167 |
|
168 extern ComplexMatrix |
|
169 besselh2 (const RowVector& alpha, const ComplexColumnVector& x, bool scaled, |
|
170 Array2<int>& ierr); |
|
171 |
|
172 extern Complex airy (const Complex& z, bool deriv, bool scaled, int& ierr); |
|
173 extern Complex biry (const Complex& z, bool deriv, bool scaled, int& ierr); |
|
174 |
|
175 extern ComplexMatrix |
|
176 airy (const ComplexMatrix& z, bool deriv, bool scaled, Array2<int>& ierr); |
|
177 |
|
178 extern ComplexMatrix |
|
179 biry (const ComplexMatrix& z, bool deriv, bool scaled, Array2<int>& ierr); |
3146
|
180 |
|
181 extern double betainc (double x, double a, double b); |
|
182 extern Matrix betainc (double x, double a, const Matrix& b); |
|
183 extern Matrix betainc (double x, const Matrix& a, double b); |
|
184 extern Matrix betainc (double x, const Matrix& a, const Matrix& b); |
|
185 |
|
186 extern Matrix betainc (const Matrix& x, double a, double b); |
|
187 extern Matrix betainc (const Matrix& x, double a, const Matrix& b); |
|
188 extern Matrix betainc (const Matrix& x, const Matrix& a, double b); |
|
189 extern Matrix betainc (const Matrix& x, const Matrix& a, const Matrix& b); |
|
190 |
4004
|
191 extern double gammainc (double x, double a, bool& err); |
3146
|
192 extern Matrix gammainc (double x, const Matrix& a); |
|
193 extern Matrix gammainc (const Matrix& x, double a); |
|
194 extern Matrix gammainc (const Matrix& x, const Matrix& a); |
|
195 |
4004
|
196 inline double gammainc (double x, double a) |
|
197 { |
|
198 bool err; |
|
199 return gammainc (x, a, err); |
|
200 } |
|
201 |
3146
|
202 #endif |
|
203 |
|
204 /* |
|
205 ;;; Local Variables: *** |
|
206 ;;; mode: C *** |
|
207 ;;; page-delimiter: "^/\\*" *** |
|
208 ;;; End: *** |
|
209 */ |