16 static const double cc = 1.12837916709551;
17 static const double xlim = 5.33;
18 static const double ylim = 4.29;
22 if(y[0] < ylim && x[0] < xlim) {
25 (1.0 - y / ylim) *
sqrt(1.0 - (x * x) / (xlim * xlim));
28 const int nc = 6 + int(23.0 * q[0]);
29 const int nu = 9 + int(21.0 * q[0]);
41 for(
int n = nu;
n >= 0;
n--) {
45 rx[
n] = 0.5 * tx / tn;
46 ry[
n] = 0.5 * ty / tn;
52 for(
int n = nc;
n >= 0;
n--) {
54 sx = rx[
n] * saux - ry[
n] * sy;
55 sy = rx[
n] * sy + ry[
n] * saux;
68 for(
int n = 9;
n >= 1;
n--) {
83 wx = 2.0 *
exp(y * y - x * x) *
cos(2.0 * x * y) - wx;
84 wy = -2.0 *
exp(y * y - x * x) *
sin(2.0 * x * y) - wy;
85 if(xx[0] > 0.0) wy = -wy;
87 if(xx[0] < 0.0) wy = -wy;
Tps< T > sin(const Tps< T > &x)
Sine.
Tps< T > exp(const Tps< T > &x)
Exponential.
void TpsWerrf(const FTps< double, 6 > &xx, const FTps< double, 6 > &yy, FTps< double, 6 > &wx, FTps< double, 6 > &wy)
Complex error function.
Tps< T > pow(const Tps< T > &x, int y)
Integer power.
Tps< T > sqrt(const Tps< T > &x)
Square root.
Tps< T > cos(const Tps< T > &x)
Cosine.