Skip to content

Through this library we can calculate factorial, exponentiation & gcd of invariably large numbers.

Notifications You must be signed in to change notification settings

abhishek0508/Large-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

BigInt

Through this library we can calculate Factorial, Exponentiation & GCD of invariably large numbers.

Way to use this library

Step1) write #include"deque.h" in your cpp file.
Step2) To Use this see the example below
For Eg.,

BigInt bigint_one, bigint_two;
// Take two string for whom you want to calculate gcd, or exponentiation and one string for factorial.
cin>>string_one>>string_two;
//Intialize BigInt object with these strings
bingint_one.setInt(string_one);
bigint_second.setInt(string_two);
// Now the operation defined as "fact()" for factorial, "exponent()" for exponentiation, "gcd()" for GCD
// example code for below for how to operate this functions
BigInt ans = bigint_one.fact(bigint_second);
// cout<<ans.getInt() will display the results.
// Similary for others as well

--------------Thanks------------------

About

Through this library we can calculate factorial, exponentiation & gcd of invariably large numbers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages