https://github.com/ganesh-k13/intal
Big Integer library written in C++ to perform basic arithmetic operations
https://github.com/ganesh-k13/intal
biginteger boost cpp python
Last synced: 10 months ago
JSON representation
Big Integer library written in C++ to perform basic arithmetic operations
- Host: GitHub
- URL: https://github.com/ganesh-k13/intal
- Owner: ganesh-k13
- License: mit
- Created: 2017-06-20T02:18:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-28T06:39:33.000Z (over 7 years ago)
- Last Synced: 2025-04-12T01:04:11.240Z (10 months ago)
- Topics: biginteger, boost, cpp, python
- Language: C++
- Homepage:
- Size: 539 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Big Integer Library
[](https://travis-ci.org/ganesh-k13/Intal)
Big Integer library written in C++ to perform basic arithmetic operations
### Prerequisites
* g++ version 4.8.4 or higher
* Boost version 1.63.0 or higher
* python 2.7.6 or higher
### Installing
First compile the project in your local system by:
```
make clean
make
```
For testing if it works, see Running tests below
## Running Tests
For automated tests, run:
```
make script
```
It generates random numbers and tests if the basic operations are performed correctly
For manual tests, run:
```
./test -a #For addition
./test -s #For subtraction
./test -m #For multiplication
./test -d #For division
./test -e #For exponentiation
```
## Deployment
For using the Intal library:
* Copy libintal.a file to the location of your source file.
* Include Intal.h to your source file.
* To compile your program (say main.cpp):
```
g++ -static main.cpp -L. -lintal -o main
```
## Built With
* [C++](http://www.cplusplus.com/) - The main backend used
* [Boost](http://www.boost.org/) - For faster multiplication
* [Python](https://docs.python.org/2/) - Used for testing
## Authors
* **Ganesh K.** - [ganesh-k13](https://github.com/ganesh-k13)
## Acknowledgments
This is developed as an assignment for Design and Analysis of Algorithms Course