Value including complex 

Full elliptic integral of 1 sort 
Full elliptic integral 2 sorts 
Elliptic integrals first appeared in the problem of determining the perimeter of an arbitrary ellipse .
In the general case, the integral is called elliptic
where is a rational function of \(x\) and \(y\) , and \(y ^ 2\)  polynomial of the third or fourth degree from$x$
Transformations are known that allow expressing any elliptic integral in terms of the integral of a rational function $x$ and the following three canonical integrals.
Elliptic integral of the first kind
Elliptic integral of the second kind
Elliptic integral of the third kind
Here
\(\varphi \)  amplitude
\(k \)  module
\(n \) is the parameter of the elliptic integral (of the third kind)
Integrals for which the amplitude \(\varphi = \frac {\phi} {2} \) are called complete. For integrals of the first and second kind, the notation is used, respectively.
An additional module is used, which is equal by definition
In tables of elliptic integrals, it is customary to express the amplitude in degrees. In addition, often quantities $the F,E,the K,E are$ considered as functions of the modular angle  the angle replacing the modulus and expressed in degrees:
In this way
When calculating \(K (k)\) one of the most effective is the iterative method ofarithmeticgeometric mean (AGS). Starting from a couple \( a_0 = 1\) ; \(b_0 = k_1 = cos (\alpha)\) are the following arithmetic mean and geometric mean, which form two converging sequences:
The process ends with this $n$ for which $a$ and $b$ match. Sought value $K is$ determined by the formula
There is an even simpler formula, with $k$ tending to unity.
The calculation of the full elliptic integral of the second kind is carried out according to the same scheme as in the case of the integral of the first kind, using differences
\(c_n = \frac {a_nb_n} {2}, n = 1,2,3 .....\)
obtained at each iteration. Then
Where \(c_0 = k\)
Bot, calculates the values of the full elliptic integral of the first and second kind, for any values $k$
With this bot, we can easily determine the perimeter of an ellipse , as well as the length of the arc of any secondorder curve .
Some examples
If \(x = i\)
Complete elliptic integral of the first kind 
Complete elliptic integral of the 2nd kind 
I would like to note that if you check according to the data provided by the site www.wolframalpha.com it turns out that it has different values. This is due to the fact that on that site, the argument is first squared, that is, there the values are shown for the value \($1\)$
Complete elliptic integral of the first kind 
Complete elliptic integral of the 2nd kind 
and one more
Complete elliptic integral of the first kind 
Complete elliptic integral of the 2nd kind 
If you somewhere found an error in the calculations, please kindly report it. Thank!!!
Good luck!
