i4lib, a MATLAB code which contains many utility routines for integer 32 bit arithmetic.


The computer code and data files 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 Programs:

c8lib, a MATLAB code which implements certain elementary functions for "C8" or complex 64 bit variables;


l4lib, a MATLAB code which contains many utility routines, using one byte logical (L4) variables.

quaternions, a MATLAB code which carries out some simple arithmetic operations for quaternions.

r8lib, a MATLAB code which contains many utility routines, using real 64 bit arithmetic.


  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 23 July 2022.