Multiple Precision Rational Arithmetic

Dr. David M. Smith
Professor of Mathematics (Emeritus)
Loyola Marymount University
Los Angeles, CA

Overview of the FM rational arithmetic package

This package performs multiple-precision exact rational arithmetic.
The basic arithmetic operations are provided, along with assignments and
logical comparisons. The functions provided are ones where the function
value is an exact rational for all rational input values.

One of the primary uses of the package is to compute exact rational solutions to linear
systems of equations or exact rational inverse matrices, so routines are provided for
those operations.

See the user manual below for a list of available operations for FM rational numbers.

The program SampleFMrational.f95 below gives examples of using FM for rational calculations.

Files for the FM rational arithmetic package:

The actual files shown on this page are in this archive that contains all the FM files from this

The individual file pointers here display as pdf files for browsing. The longer files are cut
off after 20 pages.

Subroutine library for multiple-precision rational operations. 9,651 lines of code

Checks several operations for each of the fm_rational routines. 9,573 lines of code

Small sample program using fm_rational. 733 lines of code

Expected output file from SampleFMrational.f95. 398 lines

User's guide for the package, along with a list of the files, and an example set of
compiler/linker commands for building the programs. 112 lines

Back to the main FM page