FN
The Fullerton Function Library.


FN is a C++ library which evaluates elementary and special functions using Chebyshev polynomials; functions include Airy, Bessel I, J, K and Y, beta, confluent hypergeometric, error, gamma, log gamma, Pochhammer, Spence; integrals include hyperbolic cosine, cosine, Dawson, exponential, logarithmic, hyperbolic sine, sine; by Wayne Fullerton.

The original version of the library provided routines for complex, single precision real, and double precision real arguments and used the prefixes "C" and "D" to indicate the complex and double precision versions.

This scheme has been modified for consistency, and also to avoid conflict with the names of functions commonly provided by various compilers. The prefixes "C4_", "R4_" and "R8_" are used to indicate functions for complex, single precision real, and double precision real arguments. For example, the sine function can be calculated by the functions C4_SIN, R4_SIN or R8_SIN.

The original, true, correct version of FN is available through NETLIB: http://www.netlib.org/fn/index.html.

Licensing:

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

Languages:

FN is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

C4LIB, a C++ library which implements certain elementary functions for "C4" or single precision complex variables using the C++ "complex " datatype.

C8LIB, a C++ library which implements certain elementary functions for "C8" or double precision complex variables using the C++ "complex " datatype.

CHEBYSHEV_SERIES, a C++ library which can evaluate a Chebyshev series approximating a function f(x), while efficiently computing one, two or three derivatives of the series, which approximate f'(x), f''(x), and f'''(x).

CORDIC, a C++ library which uses the CORDIC method to compute certain elementary functions.

G++_INTRINSICS, a C++ program which tests or demonstrates some of the intrinsic functions provided by the G++ compiler.

LEGENDRE_POLYNOMIAL, a C++ library which evaluates the Legendre polynomial and associated functions.

MACHAR, a C++ library which computes the appropriate values of machine constants for a given machine.

MACHINE, a C++ library which stores the appropriate values of machine constants for a given machine.

R4LIB, a C++ library which contains many utility routines, using "R4" or "single precision real" arithmetic.

R8LIB, a C++ library which contains many utility routines, using "R8" or "double precision real" arithmetic.

TEST_VALUES, a C++ library which supplies test values of various mathematical functions.

Reference:

  1. Roger Broucke,
    Algorithm 446: Ten Subroutines for the Manipulation of Chebyshev Series,
    Communications of the ACM,
    Volume 16, Number 4, April 1973, pages 254-256.
  2. William Cody,
    ACM Algorithm 665, MACHAR, a subroutine to dynamically determine machine parameters,
    ACM Transactions on Mathematical Software,
    Volume 14, Number 4, pages 303-311, 1988.
  3. William Cody, William Waite,
    Software Manual for the Elementary Functions,
    Prentice Hall, 1980.
  4. Phyllis Fox, Andrew Hall, Norman Schryer,
    Algorithm 528, Framework for a Portable Library,
    ACM Transactions on Mathematical Software,
    Volume 4, Number 2, June 1978, page 176-188.
  5. Wayne Fullerton,
    Portable Special Function Routines,
    in Portability of Numerical Software,
    edited by Wayne Cowell,
    Lecture Notes in Computer Science, Volume 57, pages 452-483,
    Springer 1977,
    ISBN: 978-3-540-08446-4,
    LC: QA297.W65.
  6. Malcolm Pike, David Hill,
    Algorithm 266: Pseudo-Random Numbers,
    Communications of the ACM,
    Volume 8, Number 10, October 1965, page 605.

Source Code:

Examples and Tests:

FN_PRB2 looks at the system sine and cosine functions, versus R8_SIN and R8_COS.

List of Routines:

You can go up one level to the C++ source codes.


Last revised on 16 September 2011.