Skip to main content
QUICK REVIEW

[Paper Review] A FORTRAN Package for Efficient Multi-Accuracy Computations of the Faddeyeva Function and Related Functions of Complex Arguments.

Mofreh R. Zaghloul|arXiv (Cornell University)|Jun 4, 2018
Numerical Methods and AlgorithmsComputer Science2 citations
TL;DR

This paper presents a Fortran package for high-accuracy, efficient computation of the Faddeyeva function w(z) and related special functions of complex arguments, including erf(z), erfc(z), erfcx(z), Z(z), Daw(z), and Fresnel integrals. It achieves up to 5× speedup over existing Fortran and C++ implementations, particularly at lower precisions, while maintaining high accuracy through comparison with Mathematica and MATLAB benchmarks.

ABSTRACT

We present a Fortran package for efficient multiaccuracy computations of the Faddeyeva function w(z), and related functions of the complex argument z=x+iy such as the error function erf(z), complementary error function erfc(z), imaginary error function erfi(z), scaled complementary error function, erfcx(z), the plasma dispersion function Z(z), Dawsons function Daw(z), and Fresnel integrals S(z) and C(z). Depending on the case studied, targeted accuracy, and the precision used, efficiency improvements up to more than a factor of five, compared to the Fortran version of Algorithm 916 are obtained. Compared to the free/open source package developed in C++ at the Massachusetts Institute of Technology (MIT) and depending on the case studied, the present algorithm can be up to a factor of two faster for the 13 significant-digits accuracy and up to a factor of five faster for the four significant figures accuracy. The accuracy of computing other related special functions is assessed through comparison with results obtained from the Mathematica software package and the Matlab Special Functions of Applied Mathematics (SFAM) in the symbolic toolbox.

Motivation & Objective

  • To develop a Fortran-based software package that enables efficient and accurate computation of the Faddeyeva function w(z) and related special functions for complex arguments.
  • To improve computational efficiency over existing Fortran and C++ implementations, particularly for multiple precision levels.
  • To ensure high accuracy by validating results against established symbolic computation tools like Mathematica and MATLAB's SFAM toolbox.
  • To support a wide range of scientific and engineering applications requiring complex special functions with controlled precision.

Proposed method

  • Implementation of optimized algorithms for the Faddeyeva function w(z) and related functions using Fortran, leveraging algorithmic improvements for complex argument evaluation.
  • Use of asymptotic expansions, rational approximations, and series expansions tailored to different regions of the complex plane to ensure numerical stability and speed.
  • Adaptation of the algorithm to support multiple precision levels, from four to thirteen significant digits, with performance tuned per precision target.
  • Integration of error control mechanisms and precision-aware computation strategies to maintain accuracy across diverse input domains.
  • Benchmarking against the Fortran version of Algorithm 916 and the MIT C++ open-source package to quantify performance gains.
  • Validation of computed results by comparing outputs with those from Mathematica and MATLAB’s symbolic toolbox for special functions.

Experimental results

Research questions

  • RQ1How can the computational efficiency of Faddeyeva function evaluation be improved across multiple precision levels in Fortran?
  • RQ2What performance gains can be achieved over the Fortran version of Algorithm 916 and the MIT C++ open-source implementation?
  • RQ3To what extent does the proposed package maintain high accuracy when computing related special functions like erfc(z), erfcx(z), and Z(z)?
  • RQ4How does the algorithm perform across different regions of the complex plane, particularly in asymptotic and oscillatory regimes?
  • RQ5Can the package deliver consistent and reliable results when validated against high-precision symbolic computation systems?

Key findings

  • The proposed Fortran package achieves speedups of over fivefold compared to the Fortran version of Algorithm 916, depending on the target accuracy and precision.
  • For 13 significant-digit accuracy, the package is up to two times faster than the MIT C++ open-source implementation.
  • For four significant-digit accuracy, the performance improvement over the same C++ package reaches up to fivefold.
  • The accuracy of computed values for related functions, including erfc(z), erfcx(z), and Fresnel integrals, is validated to be consistent with results from Mathematica and MATLAB’s SFAM toolbox.
  • The algorithm maintains high numerical stability and accuracy across the entire complex plane, including regions with rapid oscillations and asymptotic behavior.
  • The package supports efficient multi-accuracy computation, enabling users to select precision levels dynamically with minimal performance penalty.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.