2023-04-21 23:17:52 +03:00
2023-04-21 23:06:09 +03:00
2023-04-21 23:06:07 +03:00
2023-04-21 23:06:09 +03:00
2023-04-21 23:17:52 +03:00

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:

  1. Read a number from input stream using cin
  2. Create a new triple object using that input.
  3. Operate with the triples as needed.
Description
Dirty and messy implementation of a variable multiprecision method using vectors and basic arithmetic.
Readme GPL-3.0 55 KiB
Languages
C++ 99.4%
C 0.6%