test_int, a Python code which evaluates test integrands.
The test integrands would normally be used to testing one dimensional quadrature software. It is possible to invoke a particular function by number, or to try out all available functions, as demonstrated in the sample calling program.
The library includes not just the integrand, but also the interval of integration, and the exact value of the integral. Thus, for each integrand function, three subroutines are supplied. For instance, for function #9, we have the routines:
Moreover, since the same interface is used for each function, if you wish to work with problem 16 instead, you simply change the "09" to "16" in your routine calls.
If you wish to call all of the functions, then you simply use the generic interface, which again has three subroutines, but which requires you to specify the problem number as an extra input argument:
Finally, some demonstration routines are built in for simple quadrature methods. These routines include
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
test_int is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.