Arbitrary precision mathematics library implemented in pure V.
- The main aim for this project is to be a replacement for V's math.big.
- Have no dependency on external thridparty libraries.
- Be written completely in V.
- Implement the following types:
- Int
- Fraction
- Decimal
- Constructible Real
- Be well tested. Besides being in sync with the standard tests, we define more tests to ensure proper coverage of code and correct handling of all practical cases.
-
Int
is feature complete.- Initialization
- Equality and Comparison
- Addition and Subtraction
- Multiplication
- Division
- Representation
- Existing tests work
-
big_test.v
passes
-
-
Fraction
is feature complete.
-
Decimal
is feature complete.
- Standard Math library
- Algebraic Functions
- Roots
- Transcendental Functions
- Trigonometric Functions
- Exponential and Logarithmic Functions
- Fundamental Constants
- Algebraic Functions
- Constructible Real (
Real
) is feature complete.
The Documentation for the publicly accessible API is available here.
This library is being developed actively by me i.e. Subhomoy Haldar @hungrybluedev. If you want to get involved you can do the following:
- Create Feature Requests on the Issues tab.
- Report a bug in the Issues tab and then submit a Pull Request that fixes the bug if you can.
- Stay in touch
- Drop by on the Official V Lang Discord Server - I'm fairly active there.
- Follow me on Twitter @hungrybluedev.