Rational numbers of any size (as big as needed)
Opera performs the mathematically exact operations on rational numbers of any size. The command files are true small programs.
The class bigRa implements a rational number with its numerator and its denominator being integer numbers of any size, as big as needed, using the GMP library working like normal arithmetic created by Paul Herman.
Each number of this class has a name and its value. These numbers may be defined or red, computed and saved.
The code is able to perform seven arithmetic operations. The user can enter commands on the keyboard but he can also use files of commands. The syntax of these commands is very simple. And here i = 1/0 = infinity can be used as other rational numbers.
Opera is available on Windows and Linux : source, project, executable, examples, documentation.
You may have a look at the file : Opera.pdf
laudehenri / opera Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pgl10/opera
Rational numbers of any size (as big as needed)