A Single Precision Complex Arithmetic Utility Library

**C4LIB**
is a Python library which
implements certain
elementary functions for "C4" or
single precision complex variables.

The symbol "C4" is used to suggest a single precision complex variable. Here the 4 indicates that the underlying pair of real numbers each use 4 bytes of storage.

C4LIB contains routines that operate on scalars, vectors or doubly dimensioned arrays of C4's. A vector of C4's is denoted a C4VEC, and a doubly dimensioned array is a C4MAT.

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

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

C8LIB, a Python library which contains many utility routines, using "C8" or "double precision complex" arithmetic.

COMPLEX_NUMBERS, a Python program which demonstrates some simple features involved in the use of complex numbers in FORTRAN90 programming.

I4LIB, a Python library which contains many utility routines, using "I4" or "single precision integer" arithmetic.

R4LIB, a Python library which contains many utility routines using single precision real (R4) 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.

- c4_uniform_01.py, returns a unit pseudorandom C4.
- c4mat_print.py, prints a C4MAT.
- c4mat_print_some.py, prints some of a C4MAT.
- c4mat_uniform_01.py, returns a unit pseudorandom C4MAT.
- c4vec_print.py, prints a C4VEC.
- c4vec_uniform_01.py, returns a unit pseudorandom C4VEC.
- timestamp.py, prints the current YMDHMS date as a timestamp;

- c4lib_test.py, calls all the tests;
- c4lib_test.sh, runs all the tests;
- c4lib_test.txt, the output file;

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