lumijiez / multiprecision

Dirty and messy implementation of a variable multiprecision method using vectors and basic arithmetic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arbitrary 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.

About

Dirty and messy implementation of a variable multiprecision method using vectors and basic arithmetic.

License:GNU General Public License v3.0


Languages

Language:C++ 99.4%Language:C 0.6%