8aacc28631dc7b47027260b791a3a7d86917fcc5
Variable Multi-precision
Dirty but easy-to-comprehend arbitrary multiprecision libraries. Beware: VERY DIRTY.
Description
This was a project intended as an university laboratory, meant to make us understand the value of precision in numerical computations. It uses vectors as means to store numbers by its digits, and operates on them accordingly. I've implemented addition, subtraction, multiplication and division. Any contributions are welcome! I also know the code is extremely unefficient and dirty, but my objective was to accomplish it as fast as possible.
Features
A list of the main features of the project:
| Feature | Description |
|---|---|
| Addition | Overloaded operator + |
| Subtraction | Overloaded operator - |
| Multiplication | Overloaded operator * |
| Division | Overloaded operator / |
| I/O | Overloaded operators cin/cout |
| Comparison | Overloaded operators </>/==/!= |
Usage
Instructions for using the library:
- Read a number from input stream using
cin - Create a new
tripleobject using that input. - Operate with the
triples as needed.
Languages
C++
99.4%
C
0.6%