No announcement yet.
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mata implementation of Mittag-Leffler function

    I have just completed a port to Mata of Roberto Garrappa's MATLAB implementation of his algorithm for computing the generalized Mittag-Leffler function.

    The paper on the method is:
    R. Garrappa, Numerical evaluation of two and three parameter Mittag-Leffler functions, SIAM Journal of Numerical Analysis, 2015, 53(3), 1350-69.

    The MATLAB code, with basic documentation, is at

    This is a direct port: the syntax and functionality remain the same.

    The code sits in a GIthub repository:
    Only one file is needed, MittagLeffler.mata. You can download it directly from there. Or in Stata, type

    net from
    Then follow the links to download MittagLeffler.mata.

    To use the program, you'll need to manually compile MittagLeffler.mata. Just run it once as if it were a do file. That will make the mlf() function permanently available.