Skip to content

Flexksx/variable-multiprecision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors