Hi there 👋 I'm Ayaan.
- 📫 You can reach me at
Efficient OpenSource Big Integer(Library) Support for C++
License: Boost Software License 1.0
sqrt(x)
returns the square root of largeInt
x
also implement tests
Describe the bug
When a largeInt object is initialized with a string of negative integer, then it prints double - sign when printed with cout.
To Reproduce
Steps to reproduce the behavior:
largeInt d("-234");
cout<<d<<endl;
Expected behavior
Output should be -234 but the output is --234
min(a, b) returns the minimum of a and b
there could be different possible overloads
see #21 and implement the corrosponding min() overloads
overload ostream operator with tests
implement the following function for largeInt class
max()
can have overloads examplemax(largeInt, largeInt);
max(largeInt, int);
max(largeInt, int64_t);
there are more possibile overloads
but for now aim is to implement these trivial overloads
+ overload
- overload
* overload
/ overload
+= overload
-= overload
*= overload
/= overload
% overload
%= overload
== overload
= overload
!= overload
< overload
<= overload
> overload
>= overload
also include tests for corrosponding operators
Optimize the already exist large Integer mutiplication algorithm (Karastuba Algorithm) by Schonhage–Strassen algorithm
write unit test for istream operator
pow(a, b)
returns ab
implement the possible overloads of pow()
Many of the operator overloads are taking in arguments by value. This will cause unnecessary copies of the objects. Better to convert them to const ref wherever possible.
Returns false if numbers are equal else returns true.
Please assign this to me.
Implement all bitwise operator overloads for large Integers
Bitwise OR
Bitwise AND
Bitwise NOT
Bitwise XOR
Describe the bug
Command file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/input.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/input.txt)
in tests/operators/CMakeLists.txt actually copies input.txt under build/tests/operators/input.txt/input.txt
This means when tests try to open input.txt, they are opening a directory instead of actual *.txt file. Surprisingly std::ifstream::is_open() return true in such cases, causing the tests to be reported as pass with ever being run.
The command should be file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/input.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The additional input.txt directory should not be created.
Desktop:
overload addition operator
Describe the bug
Directory structure generated by MSVC compiler is a little different. This causes all the tests using txt files to fail, because they don't find the required input *.txt files. It seems cmake files will have to be modified to copy all the txt files to correct location depending on current platform.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Tests should pass.
Desktop:
Additional context
if(WIN32) can be used.
Currently we have only macOS and ubuntu CI workflow,
task is to do the same for windows also.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.