TBCI Numerical high perf. C++ Library
2.8.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
home
abuild
rpmbuild
BUILD
libtbcinumlib2_8-2.8.2-build
numerix-2.0
lina
interface
specfun
hyper2geom1_stdcplx.cpp
Go to the documentation of this file.
1
8
9
#include "tbci/basics.h"
10
#include "tbci/specfun_stdcplx.h"
11
#include <iostream>
12
13
NAMESPACE_TBCI
22
CPLX__
complex<double>
hyper2geom1
(
const
CPLX__
complex<double>
a
,
23
const
CPLX__
complex<double>
b
,
24
const
CPLX__
complex<double>
c
,
25
const
CPLX__
complex<double>
z)
26
{
27
CPLX__
complex<double>
oldres,
res
,
fac
;
28
res
= 1.0;
fac
= 1.0;
29
for
(
int
n = 0; n < 120; n++) {
30
oldres =
res
;
31
fac
*= (
a
+(double)n) * (
b
+(
double
)n) * z / ((
c
+(double)n) * (double)(n+1));
32
res
+=
fac
;
33
if
(
res
== oldres)
34
return
res
;
35
}
36
STD__
cerr <<
"hyper2geo1: Accuracy not reached!"
<<
STD__
endl;
37
return
res
;
38
}
39
NAMESPACE_END
STD__
#define STD__
Definition
basics.h:338
NAMESPACE_END
#define NAMESPACE_END
Definition
basics.h:323
NAMESPACE_TBCI
#define NAMESPACE_TBCI
Definition
basics.h:317
c
return c
Definition
f_matrix.h:760
fac
tm fac
Definition
f_matrix.h:1052
b
F_TMatrix< T > b
Definition
f_matrix.h:736
hyper2geom1
NAMESPACE_TBCI CPLX__ complex< double > hyper2geom1(const CPLX__ complex< double > a, const CPLX__ complex< double > b, const CPLX__ complex< double > c, const CPLX__ complex< double > z)
Definition
hyper2geom1_stdcplx.cpp:22
a
const unsigned TMatrix< T > const Matrix< T > * a
Definition
matrix_kernels.h:26
res
const unsigned TMatrix< T > * res
Definition
matrix_kernels.h:26
CPLX__
complex
#define complex
Definition
own_lapack_routines.cpp:21
Generated by
1.16.1