Advanced maths

Weierstrass elliptic p function calculator from lattice invariants

Evaluate the real Weierstrass elliptic p function and its derivative from nonsingular real lattice invariants.

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

Evaluate the real Weierstrass elliptic p function and its derivative from nonsingular real lattice invariants.

THE FORMULAp(z)=e3+(e1-e3)/sn(sqrt(e1-e3) z | m)^2; m=(e2-e3)/(e1-e3); p_prime^2=4p^3-g2 p-g3.

A worked example

For g2=4, g3=0 and z=1, p is approximately 1.213755986338775 and its derivative is approximately -1.515722527941722. The positive real half-period is approximately 1.311028777146060.

Good to know

Real invariants with positive discriminant initially and real argument separated from lattice poles. Recover roots/real half-period, evaluate with validated elliptic identities and check (p′)^2=4p^3−g2p−g3. All normalizations on one page; no unsupported complex lattice or near-pole accuracy claim.

The elliptic function defined by invariants

The Weierstrass elliptic p function is specified by two lattice invariants and a complex argument. This page evaluates its real branch for real invariants with positive discriminant and a real argument away from poles. It returns the function, its first derivative, the associated cubic roots and a real half-period under one consistent normalization.

The letter p denotes a named doubly periodic function, not a probability or a polynomial coefficient. Its invariants enter the differential equation with the factor four on the cubic term. Using formulas from a different normalization without converting that factor changes both the period and the values, even when the input symbols have familiar names.

Weierstrass elliptic p function calculator from lattice invariants worked exampleω1g2 = 4; g3 = 0e1=1, e2=0, e3=−1ω1 ≈ 1.311028777p(ω1)=1; p′(ω1)=0
Scroll across to see the full diagram.
For g2=4, g3=0 and z=1, p is approximately 1.213755986338775 and its derivative is approximately -1.515722527941722. The positive real half-period is approximately 1.311028777146060.

Compare this with the Jacobi elliptic sn cn dn calculator from argument and parameter. Evaluate the Weierstrass function and derivative under g2,g3 normalization, not the Jacobi sn/cn/dn family under argument/parameter input.

The supported real domain

Enter real g2 and g3 with g2 cubed minus twenty-seven g3 squared strictly positive. The cubic four e cubed minus g2 e minus g3 then has three distinct real roots, ordered e1 greater than e2 greater than e3. This ordering determines a real Jacobi parameter between zero and one for the implemented evaluation.

The argument must remain separated from integer multiples of the real period, where the function has double poles. A near-pole answer may be huge and sensitive to argument rounding, so the calculation applies a scale-aware separation check. Inputs with a zero or negative discriminant require a different limiting or complex-lattice treatment and are outside the initial supported domain.

Conversion to Jacobi elliptic form

Let a be the square root of e1 minus e3 and let m be (e2 minus e3) divided by (e1 minus e3). The real value is e3 plus (e1 minus e3) divided by sn(a z given m) squared. Its derivative uses the corresponding cn and dn factors as well as the cube of sn in the denominator.

This conversion connects two named elliptic-function conventions; it is not a new independent function at every choice of invariants. Root ordering, the square-root scale and the parameter-versus-modulus convention must all agree. Passing m where a library expects its square root would generally produce a plausible-looking but incorrect answer and a failed differential-equation check.

Periods, reflection and turning points

The positive real half-period is the complete elliptic integral K(m) divided by a. The p function repeats after twice that value. It is even in its argument, while its first derivative is odd. Reducing a large real argument by the period improves arithmetic only when the reduction itself is numerically reliable.

At the real half-period, the value is e1 and the derivative is zero. This is a turning point, not a pole. A routine that computes the derivative only by choosing an arbitrary square-root sign in the differential equation can mishandle this change of sign. Using the differentiated Jacobi representation or an equivalent checked method preserves the correct behavior on both sides.

The lemniscatic worked example

The default invariants are g2 equal to four and g3 equal to zero. Their discriminant is sixty-four, and their cubic roots are one, zero and minus one. Consequently a is the square root of two and m is one half. The positive real half-period is approximately 1.311028777146060 under the stated Weierstrass normalization.

At argument one, p is approximately 1.213755986338775 and its first derivative is approximately minus 1.515722527941722. The negative derivative is consistent with approaching the minimum e1 from the pole at zero. These values can be checked independently with high-precision Jacobi functions and the same root scaling, without relying on a second copy of the browser implementation.

Differential and symmetry checks

Substituting the returned value and derivative into p prime squared equals four p cubed minus g2 p minus g3 gives a residual. The second derivative identity p double prime equals six p squared minus g2 divided by two supplies another check when a second derivative is evaluated independently. A residual should use a scale that remains meaningful for large near-pole values.

Test evenness at z and minus z, oddness of the derivative and repetition after one real period. Also check the half-period root and zero derivative. These identities diagnose different implementation mistakes. Computing a derivative by the same identity used to check it would make that particular check circular, so numerical fixtures should include an independently differentiated or separately represented derivative.

Interpreting the numerical limits

The page does not claim general complex continuation, arbitrary lattice choices or high relative accuracy arbitrarily close to poles. The real positive-discriminant restriction is a deliberate validated domain. A branch or residual failure is reported as unresolved rather than repaired by silently changing the invariants or rounding the argument to a nearby half-period.

The invariants also transform under a change of the argument scale, so they should not be treated as unrelated unitless sliders when matching an external convention. Record all three inputs and the normalization with an exported answer. A small residual for one convention does not establish that values copied from a differently scaled elliptic-function source have been converted correctly.

A few questions, answered

Is m the elliptic modulus or parameter?

Here m is the Jacobi parameter, equal to (e2-e3)/(e1-e3); some sources use its square root as the modulus.

Is the real half-period a pole?

No. It is a turning point with p=e1 and p prime equal to zero.

Why reject a nearly zero discriminant?

The roots and periods approach a degenerate limit that requires separate validated handling.

Can I enter a complex argument?

The initial supported calculator is restricted to real arguments and positive-discriminant real invariants.

Find your calculator

Start typing to explore the library.