scipy.special.elliprf(x, y, z, out=None) = <ufunc 'elliprf'>#

Completely-symmetric elliptic integral of the first kind.

The function RF is defined as [1]

\[R_{\mathrm{F}}(x, y, z) = \frac{1}{2} \int_0^{+\infty} [(t + x) (t + y) (t + z)]^{-1/2} dt\]
x, y, zarray_like

Real or complex input parameters. x, y, or z can be any number in the complex plane cut along the negative real axis, but at most one of them can be zero.

outndarray, optional

Optional output array for the function values

Rscalar or ndarray

Value of the integral. If all of x, y, and z are real, the return value is real. Otherwise, the return value is complex.

See also


Degenerate symmetric integral.


Symmetric elliptic integral of the second kind.


Completely-symmetric elliptic integral of the second kind.


Symmetric elliptic integral of the third kind.


The code implements Carlson’s algorithm based on the duplication theorems and series expansion up to the 7th order (cf.: and the AGM algorithm for the complete integral. [2]

Added in version 1.8.0.



B. C. Carlson, ed., Chapter 19 in “Digital Library of Mathematical Functions,” NIST, US Dept. of Commerce.


B. C. Carlson, “Numerical computation of real or complex elliptic integrals,” Numer. Algorithm, vol. 10, no. 1, pp. 13-26, 1995.


Basic homogeneity property:

>>> import numpy as np
>>> from scipy.special import elliprf
>>> x = 1.2 + 3.4j
>>> y = 5.
>>> z = 6.
>>> scale = 0.3 + 0.4j
>>> elliprf(scale*x, scale*y, scale*z)
>>> elliprf(x, y, z)/np.sqrt(scale)

All three arguments coincide:

>>> x = 1.2 + 3.4j
>>> elliprf(x, x, x)
>>> 1/np.sqrt(x)

The so-called “first lemniscate constant”:

>>> elliprf(0, 1, 2)
>>> from scipy.special import gamma
>>> gamma(0.25)**2/(4*np.sqrt(2*np.pi))