Supplementary Material for
“Algorithm 1046: An improved recurrence method for the scaled complex error function”

Ian Thompson 2024

This file contains details of code and other supplementary materials that accompany the paper. All Fortran code is compliant with the 2008 standard. The erfs algorithm is in the module erfs_container.f90. It can be accessed by a use statement and procedure call (see erfs_simple_test.f90, below). The algorithm and testing programs can be compiled using a makefile or a shell script (see below). Most instructions that follow are only needed for reproducing the tests described in section 8 of the paper.

Generation of test data

Place the three files listed below in the same folder. If using the Standard Worksheet Interface (as opposed to command line Maple), set the current directory to the folder containing the files. See ?currentdir in Maple.

Other authors’ code

Code for three additional algorithms is included in the folder ‘other_authors_code’. To include these algorithms in test data, simply copy the source files into the folder containing the test programs and re-execute the makefile or compile script (not the simple versions). The additional algorithms will be detected and included automatically; the makefile or script will insert appropriate preprocessor flags as described below.