Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Funny library for arbitrary-precision arithmetic

Prerequisites

  1. Cmake version 3.27 is required. To check:
    cmake --version

Installation

  1. Make dir for cloning
  2. Clone the repo:
    git clone https://github.com/neykandre/Large-Numbers.git
  3. Make dir for build files:
    mkdir build_files
  4. Build the project:
    cd ./build_files
    cmake ../Large-Numbers
    cmake --build .

It's possible to build the following targets separately (with --target argument):

  1. MyTests - tests
  2. computePi - computing Pi programm
  3. LargeNumbersLib - library separately

Usage

  1. /computePi/computePi *precision(default=100)*
    • compute PI constant with given precision
  2. /test/MyTests
    • run tests

Time durations for computing PI constant

Number of decimal places:

  • 100 - 0.65 ms
  • 1000 - 59 ms
  • 2000 - 240 ms
  • 4998 - 1350 ms

About

Algorithms C++ HW-1

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages