test_values
test_values,
a C++ code which
stores a few selected values of various
mathematical functions.
The code provides 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.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
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 Programs:
cordic,
a C++ code which
uses the CORDIC method to compute certain elementary functions.
fn,
a C++ code which
contains routines by Wayne Fullerton for evaluating elementary
and special functions.
gsl,
a C++ code which
includes routines that evaluate many special functions.
legendre_polynomial,
a C++ code which
evaluates the Legendre polynomial and associated functions.
lobatto_polynomial,
a C++ code which
evaluates Lobatto polynomials, similar to Legendre polynomials
except that they are zero at both endpoints.
polpak,
a C++ code which
computes various mathematical functions;
test values for many of these functions are available in
TEST_VALUES.
prob,
a C++ code which
computes various statistical functions;
test values for many of these functions are available in
TEST_VALUES.
test_values_test
Reference:

Milton Abramowitz, Irene Stegun,
Handbook of Mathematical Functions,
National Bureau of Standards, 1964,
ISBN: 0486612724,
LC: QA47.A34.

Robert Corless, Gaston Gonnet, David Hare, David Jeffrey,
Donald Knuth,
On the Lambert W Function,
Advances in Computational Mathematics,
Volume 5, 1996, pages 329359.

Gerard Cornuejols, Regina Urbaniak, Robert Weismantel, Laurence Wolsey,
Decomposition of Integer Programs and of Generating Sets,
in Algorithms  ESA '97,
Lecture Notes in Computer Science 1284,
edited by R Burkard, G Woeginger,
Springer, 1997, pages 92103,
LC: QA76.9.A43.E83.

Marc Deleglise, Joel Rivat,
Computing the Summation of the Moebius Function,
Experimental Mathematics,
Volume 5, 1996, pages 291295.

Lester Haar, John Gallagher, George Kell,
NBS/NRC Steam Tables:
Thermodynamic and Transport Properties and Computer Programs
for Vapor and Liquid States of Water in SI Units,
Hemisphere Publishing Corporation, Washington, 1984,
ISBN: 0891163530,
LC: TJ270.H3.

Brian Hayes,
"Why W?",
The American Scientist,
Volume 93, MarchApril 2005, pages 104108.

Kanti Mardia, Peter Jupp,
Directional Statistics,
Wiley, 2000,
ISBN: 0471953334,
LC: QA276.M335

Allan McLeod,
Algorithm 757:
MISCFUN: A software package to compute uncommon
special functions,
ACM Transactions on Mathematical Software,
Volume 22, Number 3, September 1996, pages 288301.

National Bureau of Standards,
Tables of the Bivariate Normal Distribution and Related Functions,
Applied Mathematics Series, Number 50, 1959.

Robert Owens,
An Algorithm to Solve the Frobenius Problem,
Mathematics Magazine,
Volume 76, Number 4, October 2003, 264275.

Karl Pearson,
Tables of the Incomplete Beta Function,
Cambridge University Press, 1968,
ISBN: 0521059224,
LC: QA351.P38.

Frank Powell,
Statistical Tables for Sociology, Biology and Physical Sciences,
Cambridge University Press, 1982,
ISBN: 0521284732,
LC: QA276.25.S73.

Edward Reingold, Nachum Dershowitz,
Calendrical Calculations: The Millennium Edition,
Cambridge University Press, 2001,
ISBN: 0521777526,
LC: CE12.R45.

Johannes van der Corput,
Verteilungsfunktionen,
Proc Akad Amsterdam,
Volume 38, 1935,
Volume 39, 1936.

Eric Weisstein,
CRC Concise Encyclopedia of Mathematics,
CRC Press, 2002,
Second edition,
ISBN: 1584883472,
LC: QA5.W45

Stephen Wolfram,
The Mathematica Book,
Fourth Edition,
Cambridge University Press, 1999,
ISBN: 0521643147,
LC: QA76.95.W65.

Shanjie Zhang, Jianming Jin,
Computation of Special Functions,
Wiley, 1996,
ISBN: 0471119636,
LC: QA351.C45.

Daniel Zwillinger, editor,
CRC Standard Mathematical Tables and Formulae,
30th Edition,
CRC Press, 1996,
ISBN: 0849324793,
LC: QA47.M315.

Daniel Zwillinger, Steven Kokoska,
Standard Probability and Statistical Tables,
CRC Press, 2000,
ISBN: 1584880597,
LC: QA273.3.Z95.
Source Code:
Last revised on 09 July 2020.