i4lib, a Python code which contains many utility routines for "I4" or "single precision integer" arithmetic.


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


i4lib is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

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

r8lib, a Python code which contains many utility routines using double precision real (R8) arithmetic.

uniform, a Python code which contains uniform random number generators (RNG's) for several arithmetic types.


  1. Milton Abramowitz, Irene Stegun,
    Handbook of Mathematical Functions,
    National Bureau of Standards, 1964,
    ISBN: 0-486-61272-4,
    LC: QA47.A34.
  2. Thomas Cormen, Charles Leiserson, Ronald Rivest,
    Introduction to Algorithms,
    MIT Press, 2001,
    ISBN: 0262032937,
    LC: QA76.C662.
  3. 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:

Last revised on 12 October 2021.