R4LIB
A Single Precision Real Arithmetic Utility Library
R4LIB
is a Python library which
contains a number of utilities for
single precision real (R4) arithmetic.
Licensing:
The computer code and data files made available on this web page
are distributed under
the GNU LGPL license.
Languages:
R4LIB is available in
a C version and
a C++ version and
a FORTRAN90 version and
a MATLAB version and
a Python version.
Related Programs:
C4LIB,
a Python library which
contains many utility routines, using "C4" or
"single precision complex" arithmetic.
C8LIB,
a Python library which
contains many utility routines, using "C8" or
"double precision complex" arithmetic.
I4LIB,
a PYTHON library which
contains many utility routines, using "I4" or "single precision integer"
arithmetic.
R8LIB,
a Python library which
contains many utility routines, using "R8" or
"double precision real" arithmetic.
UNIFORM,
a Python library which
contains uniform random number generators (RNG's) for
several arithmetic types.
References:
-
Thomas Cormen, Charles Leiserson, Ronald Rivest,
Introduction to Algorithms,
MIT Press, 2001,
ISBN: 0262032937,
LC: QA76.C662.
-
Albert Nijenhuis, Herbert Wilf,
Combinatorial Algorithms for Computers and Calculators,
Second Edition,
Academic Press, 1978,
ISBN: 0-12-519260-6,
LC: QA164.N54.
Source Code:
-
r4_exp.py,
evaluates the exponential function, while avoiding underflow and
overflow.
-
r4mat_print.py,
prints an R4MAT.
-
r4mat_print_some.py,
prints some of an R4MAT.
-
r4_uniform_01.py,
returns a unit pseudorandom R4.
-
r4_uniform_ab.py,
returns a scaled pseudorandom R4.
-
r4mat_print.py,
prints an R4MAT.
-
r4mat_print_some.py,
prints some of an R4MAT.
-
r4mat_uniform_ab.py,
returns a scaled pseudorandom R4MAT.
-
r4mat_uniform_01.py,
returns a unit pseudorandom R4MAT.
-
r8vec_covariance.py,
computes the sample covariance of two sets of vector data.
-
r4vec_print.py,
prints an R4VEC.
-
r4vec_uniform_01.py,
returns a unit pseudorandom R4VEC.
-
r4vec_uniform_ab.py,
returns a scaled pseudorandom R4VEC.
-
timestamp.py,
prints the current YMDHMS date as a timestamp.
Examples and Tests:
You can go up one level to
the Python source codes.
Last revised on 03 September 2018.