elfun, a MATLAB code which evaluates elliptic integrals, include Bulirsch's integrals cel(), cel1(), cel2(), cel3(), Carlson integrals rc(), rd(), rf(), rg(), rj(), and Jacobi functions cn(), dn(), sn(), by Milan Batista.


The computer code and data files made available on this web page are distributed under the GNU LGPL license.


elfun is available in a MATLAB version.

Related Data and Programs:


elliptic_integral, a MATLAB code which evaluates elliptic integral functions using Carlson's elliptic functions.

test_values, a MATLAB code which supplies test values of various mathematical functions.

toms577, a MATLAB code which evaluates Carlson's elliptic integral functions RC, RD, RF and RJ. This is a version of ACM TOMS algorithm 577;


  1. Milan Batista,
    Elfun18 - A collection of MATLAB functions for the computation of elliptic integrals and Jacobian elliptic functions of real arguments,
    Volume 10, 2019,

Source Code:

Last modified on 22 July 2022.