Sample Function Values

TEST_VALUES is a Python library which returns a few selected values of various functions.

The intent of TEST_VALUES is to provide a means of making very simple tests for correctness of software designed to compute a variety of functions. The testing can be done automatically. The data provided is generally skimpy, and might not test the algorithm over a suitably wide range. It does, however, provide a small amount of reassurance that a given computation is (or is not) computing the appropriate quantity, and doing so reasonably accurately.


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


TEST_VALUES is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

FN, a Python library which approximates elementary and special functions using Chebyshev polynomials; functions include Airy, Bessel I, Bessel J, Bessel K, Bessel Y, beta, confluent hypergeometric, cosine integral, Dawson's integral, digamma (psi), error, exponential integral, gamma, hyperbolic cosine integral, hyperbolic sine integral, incomplete gamma, log gamma, logarithmic integral, Pochhammer, psi, sine integral, Spence; by Wayne Fullerton.

Source Code:

Examples and Tests:

You can go up one level to the Python source codes.

Last revised on 23 June 2018.