Skip to content

EllipticK ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.

Complete elliptic integral of the first kind K(m), parameter convention m = k².

✓ checked against that system · ! checked, with disagreements (hover a chip)WikipediaElliptic integralComplete elliptic integral of the first kindMathWorldCompleteEllipticIntegraloftheFirstKindWikidataQ109752514DLMF19.2.E8FungrimEllipticK✓Fungrim entryWolfram LanguageEllipticK!
EllipticK(complex | infinity) -> numberπ/2 at an exact 0 (the values-at-zero patch).
SageMathelliptic_kc(complex | infinity)SymPyelliptic_k(complex | infinity)mpmathellipk(complex | infinity)Juliaenumeratio_ball(elliptic_k, complex | infinity)
Typed signatures
TypePackageApplies
(complex | infinity) -> numberanalyticreplaces compute-enginealways
(complex | infinity) -> numbercompute-enginealways

Domain: Compute engine

Plot

ComplexPlot
real slice

Examples

Basic #
live ↗
InSeries⁡(EllipticK(x),x,0,5)\operatorname{Series}(\mathrm{EllipticK}(x), x, 0, 5)Outπ2+πx8+1128×9πx2+1512×25πx3+132 768×1 225πx4+1131 072×3 969πx5+O(x6)\frac{π}{2}+\frac{πx}{8}+\frac{1}{128}×9πx^2+\frac{1}{512}×25πx^3+\frac{1}{32\,768}×1\,225πx^4+\frac{1}{131\,072}×3\,969πx^5+O\left(x^6\right)
live ↗
InNormal⁡(Series⁡(EllipticK(x),x,∞,2))\operatorname{Normal}(\operatorname{Series}(\mathrm{EllipticK}(x), x, ∞, 2))Out−iln⁡(x)+2i+π−2iln⁡(4)8x3+−iln⁡(x)+π−2iln⁡(4)2x\frac{-i\ln(x)+2i+π-2i\ln(4)}{8\sqrt{x}^{3}}+\frac{-i\ln(x)+π-2i\ln(4)}{2\sqrt{x}}
Scope #
live ↗
InN(EllipticK(45),50)N(\mathrm{EllipticK}(\frac{4}{5}), 50)Out2.257 205 326 820 853 655 083 256 004 523 387 397 235 419 281 742.257\,205\,326\,820\,853\,655\,083\,256\,004\,523\,387\,397\,235\,419\,281\,74
live ↗
In[EllipticK(0),EllipticK(1)]\bigl\lbrack\mathrm{EllipticK}(0), \mathrm{EllipticK}(1)\bigr\rbrackOut[π2,∞]\bigl\lbrack\frac{π}{2}, ∞\bigr\rbrack
live ↗
InEllipticK(∞)\mathrm{EllipticK}(∞)Out00
live ↗
InFunctionExpand(EllipticK([[−1,0],[1/2,−1]]))\mathrm{FunctionExpand}(\mathrm{EllipticK}(\bigl\lbrack\bigl\lbrack-1, 0\bigr\rbrack, \bigl\lbrack1/2, -1\bigr\rbrack\bigr\rbrack))Out[[2Γ(1/4)28π,π2],[Γ(1/4)24π,2Γ(1/4)28π]]\bigl\lbrack\bigl\lbrack\frac{\sqrt{2}Γ(1/4)^2}{8\sqrt{π}}, \frac{π}{2}\bigr\rbrack, \bigl\lbrack\frac{Γ(1/4)^2}{4\sqrt{π}}, \frac{\sqrt{2}Γ(1/4)^2}{8\sqrt{π}}\bigr\rbrack\bigr\rbrack
live ↗
InFunctionExpand(MatrixFunction(EllipticK,[[−1,0],[1/2,−1]]))\mathrm{FunctionExpand}(\mathrm{MatrixFunction}(\mathrm{EllipticK}, \bigl\lbrack\bigl\lbrack-1, 0\bigr\rbrack, \bigl\lbrack1/2, -1\bigr\rbrack\bigr\rbrack))Out[[2Γ(1/4)28π,0],[−18(−21/2Γ(1/4)24π1/2+21/2π3/2Γ(1/4)2+21/2Γ(1/4)28π1/2),2Γ(1/4)28π]]\bigl\lbrack\bigl\lbrack\frac{\sqrt{2}Γ(1/4)^2}{8\sqrt{π}}, 0\bigr\rbrack, \bigl\lbrack-\frac{1}{8}(-\frac{2^{1/2}Γ(1/4)^2}{4π^{1/2}}+\frac{2^{1/2}π^{3/2}}{Γ(1/4)^2}+\frac{2^{1/2}Γ(1/4)^2}{8π^{1/2}}), \frac{\sqrt{2}Γ(1/4)^2}{8\sqrt{π}}\bigr\rbrack\bigr\rbrack
live ↗
InSeries⁡(EllipticK(m),m,0,3)\operatorname{Series}(\mathrm{EllipticK}(m), m, 0, 3)Outπ2+πm8+1128×9πm2+1512×25πm3+O(m4)\frac{π}{2}+\frac{πm}{8}+\frac{1}{128}×9πm^2+\frac{1}{512}×25πm^3+O\left(m^4\right)
Properties #

A singular-value-style argument; only the radical's form changes, K stays

live ↗
InEllipticK((1+2−2(1+2))4)\mathrm{EllipticK}((1+\sqrt{2}-\sqrt{2(1+\sqrt{2})})^4)OutEllipticK((1+2−21+2)4)\mathrm{EllipticK}((1+\sqrt{2}-\sqrt{2}\sqrt{1+\sqrt{2}})^4)

Known value · Wolfram MathematicalFunctionData, EllipticK

live ↗
InEllipticK(1)\mathrm{EllipticK}(1)Out∞∞

Known value · Wolfram MathematicalFunctionData, EllipticK

Possible issues #
live ↗
InN(EllipticK(2−i(−1−2π−e−π4−π2+(1+π)2)))N(\mathrm{EllipticK}(2-i(-1-2π-e^{-π^4}-π^2+(1+π)^2)))Out1.311 028 777 146 059 8−1.311 028 777 146 059 8i1.311\,028\,777\,146\,059\,8-1.311\,028\,777\,146\,059\,8i
About
Examples11
Checked againstWolfram Language 9 agree2 differSageMath 5 agree1 differ1 unevaluated2 errorSymPy 5 agree3 differ3 errormpmath 6 agreeJulia 2 agree1 differ3 error
CrosswalkWikipedia ×2MathWorldWikidataDLMFFungrimFungrim entry ×37Wolfram LanguageSageMathSymPympmathJulia

Implementation

mappedmpmathpackages/oracle/src/mappings.ts

The parameter m, not the modulus k, as in Wolfram.

mappedsagepackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts
mappedsympypackages/oracle/src/mappings.ts