AdvancedMathEllipticK Method

Computes the complete elliptic integral of the first kind.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double EllipticK(
	double k
)

Parameters

k  Double
The elliptic modulus, which must lie between zero and one.

Return Value

Double
The value of the Legendre integral K(k).

Remarks

K(k) is defined as the complete elliptic integral:

It appears in the Legendre reduction of integrals of rational funtions.

Be aware that some authors use the the parameter m = k2 instead of the modulus k.

Exceptions

ArgumentOutOfRangeExceptionk lies outside [0, 1].

See Also