Shapes & spaces

Lerch transcendent calculator with a shifted weighted power sum

Evaluate a convergent real Lerch series with a geometric tail bound and shift derivative.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Lerch's transcendent combines a geometric weight with a shifted power denominator. Its real-series form sums z to the n divided by n plus a raised to s. The shift a changes every denominator and makes the function more general than a plain polylogarithm.

THE FORMULAPhi(z,s,a)=sum_{n>=0}z^n/(n+a)^s. Domainrealabsz<=.85,a>=.25,s[-3,8] makespositivebases. Kahan compensatedsum; q=absz. For tailafterN, termt_{N+1}, ratio upperr=q ifs>=0, else q*((a+N+2)/(a+N+1))^(-s); whenr<1 boundabsTail<=abs(tNext)/(1-r). Stopboundbelowabstol+reltolabs(sum). z0Phi=a^-s. da=-sPhi(z,s+1,a); dz=(Phi(z,s-1,a)-aPhi)/z fornonzeroz, at0=(a+1)^-s. Avoid s±1 exceeding evaluatorinternalranges by internalbroaderparameters.

A worked example

With the prefilled inputs, value = 1.999999999998181.

Good to know

Real convergent weighted series only; derivative in a is a series value, its tail is not enclosed by the displayed value bound.

A shifted weighted power sum

Lerch's transcendent combines a geometric weight with a shifted power denominator. Its real-series form sums z to the n divided by n plus a raised to s. The shift a changes every denominator and makes the function more general than a plain polylogarithm.

This calculator stays inside a real, absolutely convergent series domain. It does not use analytic continuation to evaluate arbitrary complex parameters or boundary singularities. Keeping the domain explicit makes the reported tail estimate meaningful rather than merely a stopping heuristic.

Lerch transcendent calculator with a shifted weighted power sumLerch Φ(1/2,1,1): partial sums approach 2 log2123456782 log2 ≈ 1.386294361number of included terms
Scroll across to see the full diagram.
Bars are actual partial sums of Σ(1/2)^n/(n+1), with the exact logarithmic limit marked. The omitted tail decreases geometrically; no measured data are invented.

Compare with the Real polylogarithm calculator with integer order and argument transformations. EvaluatePhi(z,s,a)withindependentshift a andorder s; integer-orderLi hasfixedshift1 andisnotgeneralLerch.

Understanding the three parameters

Use the prefilled input structure and preserve the declared column or index order. The weight z may be positive or negative within the stated magnitude bound. Positive z gives terms of the same sign when the denominator is positive, while negative z alternates the signs. A positive shift keeps every denominator on a real, unambiguous power branch.

The order s controls how strongly later terms are suppressed or amplified before the geometric factor dominates. Negative orders do not make the series diverge inside the chosen z range. They do require care when constructing a bound for the first omitted terms.

Summation and a defensible tail bound

Compensated summation reduces loss from adding terms of different magnitudes. It cannot replace a truncation argument. The omitted absolute tail is bounded by a geometric series once an upper bound below one is available for all later term ratios. The engine uses at most ten thousand terms and requires a bound below a scaled10⁻¹² target before declaring convergence.

For nonnegative order, the geometric weight itself bounds the ratio. For negative order, the increasing polynomial factor adds a ratio that decreases toward one. The calculation must wait until its combined bound is below one before using the geometric tail formula.

The derivative with respect to the shift

Differentiating a term with respect to the shift a multiplies the neighboring denominator power by minus s. The engine sums that derivative alongside the function value and returns derivativeInA. It does not expose a derivative with respect to the geometric weight z in this release.

The displayed absolute tail bound belongs to the function-value series. It is not a certified enclosure for the derivative series, even though both are accumulated in the same pass. Distinguishing those two accuracies prevents the last displayed derivative digits from borrowing an unrelated function-value error claim.

A logarithmic worked example

Choose z equal to one half, s equal to one and a equal to one. The series becomes one plus one quarter plus one twelfth and so on. Multiplying it by z gives the ordinary logarithm series for minus log of one minus z.

The value is therefore twice log of two, approximately 1.386294361. Choosing order zero instead removes the shifted denominator altogether and gives one divided by one minus z. These identities check different aspects of the parameter handling.

Reading value and convergence outputs

The main value should be accompanied by a term count and an absolute tail bound. A long term count is not itself proof of accuracy. A short converged sum may be perfectly adequate when the geometric weight is small.

A static figure can show partial sums approaching the final value and the shrinking tail envelope. For alternating terms, the visual path may oscillate. The envelope should represent the actual bound used by the engine rather than a decorative confidence interval. The displayed tail estimate encloses the remaining value series under its absolute-ratio bound; it should not be reused as a derivative error estimate. Alternating signs can make cancellation reduce the final value relative to intermediate terms. The chosen finite domain keeps a geometric tail available and avoids pretending that an uncomputed analytic continuation uses the same straightforward numerical guarantee.

Where the series method stops

Values near the unit circle can need other analytic representations, and parameters outside the positive-shift real domain can introduce branch issues. This page does not claim to solve those extensions. Rejected inputs should identify the particular domain condition.

A term cap reached before the error target is an unresolved numerical result, not successful convergence. The displayed precision should be consistent with the tail bound and roundoff sensitivity. Digits beyond that support should not be presented as guaranteed. Real convergent weighted series only; derivative in a is a series value, its tail is not enclosed by the displayed value bound.

A few questions, answered

Is the shift a allowed to be zero?

No in this bounded real implementation, because the first denominator would be singular for many orders.

Can a negative order converge?

Yes; the geometric decay dominates polynomial growth when the magnitude of z is below one.

Which derivative is returned?

Only the derivative with respect to shift a; its series is evaluated numerically and is not enclosed by the displayed function-value tail bound.

Does the tail bound include floating-point roundoff?

It bounds truncation; roundoff is a separate numerical effect and must be described accordingly.

Find your calculator

Start typing to explore the library.