Dept of Mathematics and Computer Science
Because of my new job, I do not have time to continue developing this project. If you send me patches for this software, I will put them on-line, but I will not provide updates myself any more. If you want to ‘adopt’ this project, you are invited to do so. If you let me know, I will link to a new project page.
This free software library provides a C++ interface around the
mpq_t rational type of the GNU MP software
library. The main features are
The library is known to work under Red Hat Linux 9, Sun Solaris, Mac OS X and Debian GNU/Linux sarge. In fact it should work under any Linux or *BSD, provided that you have installed gcc 3.3.2 or an equivalent compiler.
You can download the source code of these releases:
You can install this library the ‘standard GNU way’, or you can use the installation script. Both procedures are covered in the user manual.
The users manual is included in the source package, and downloadable in pdf format. There is also an on-line html version.
std::cin doesn't work. This is not a bug in libRational,
it is in SpecialValue.
A workaround is entering a special values as ?xx, where xx is the hexadecimal representation of its bit pattern.LibRational is a part of the Arithmos project, which is developed by the CANT research group at the University of Antwerp.
For bugfixes, suggestions, questions, more information,... : johan@linux.be
Copyright (c) 2003 Johan Vervloet.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.
Modified: 27 September 2006