function DirichletEta(const Z: TCplx; n: Integer): TCplx;
Dirichlet Eta function.
| # | Name | Description |
|---|---|---|
| 1 | Z | complex value at which the Eta function is evaluated. |
| 2 | n | number of terms used in the complex series approximation (default 64). |
Returns: TCplx (complex) - the Dirichlet Eta function evaluated at the complex point Z.
Remarks:
The Dirichlet eta function (alternating zeta function) is defined by
eta(z) = sum_(n=1)^(inf)((-1)^(n-1))/n^z = (1-2^(1-z))zeta(z) .
Domain: any complex Z. Defined behavior: it is evaluated with an Euler / van Wijngaarden acceleration of the alternating series, using the reflection point z |-> 1-z for Re(z) < 1/2; special-cased exactly to 1/2 at z=0 and to ln 2 at z=1 (removable point). On the real axis the imaginary part of the result is zero. Known value: eta(2)=pi^2/12.