A dynamic Python math library containing numerous mathematical functions implemented from scratch.
Project description
AxiomX Math Library
AxiomX is happy to announce the second release of AxiomX - AxiomX 0.0.3. This math library is used for more accurate calculations.
Features
📚 Constants
- pi = 3.141592653589793
- e = 2.718281828459045
- tau = 2 * pi
- lemniscate = 2.622057554292119
- gelfond = e**pi
- sqrt_2 = sqrt(2)
- sqrt_3 = sqrt(3)
- sqrt_5 = sqrt(5)
- golden_ratio = (1 + sqrt_5) / 2
- silver_ratio = 1 + sqrt_2
- apery = zeta(3)
- ramanujan = gelfond**sqrt(163)
- gauss = lemniscate / pi
- euler_mascheroni = 0.577215664901533
🔢 Number Operations
absolute(x)-- Absolute valuegamma(x)-- Lanczos-based Gamma functionfactorial(x)-- Based on Gamma functionsqrt(n)-- Newton--Raphson square rootzeta(n)-- Riemann zeta approximation
➗ Continued Fractions
continued_fraction(constant, terms=5)evaluate_continued_fraction(list)
📈 Logarithmic & Exponential
exp(n)ln(x)log10(x)log(a, b)
🔺 Trigonometric Functions
sin(x)cos(x)tan(x)- Inverse trig functions like
arcsin,arccos, etc. - Hyperbolic functions and their inverses
Version
0.0.1
Usage
import AxiomX as ax
print(ax.sin(ax.pi/2))
What's new
New things are not introduced above. These are the things added:
🔢 Number Operations
- cbrt(x) - This function returns the exact cube root of x using Newton-Raphson method.
- beta(n) - Dirichlet beta function.
📚 Constants
- catalan = beta(2)
- gelfond_schneider = 2**sqrt_2
📈 Logarithmic & Exponential
- log2(x) - returns the binary logarithm of x.
🔧 Bugs fixed
- In the previous version of AxiomX, the factorial of natural numbers was returning close integers and not regular integers. So in this version, the factorial of natural numbers is always an integer and not a close integer.
- In the previous version, ln(x) returned 3.0 when x = e^3. But when e^35, the value was not 35 but it was about 6.2. So that has been refined.
- Trigonometric functions, hyperbolic and normal are now very much accurate.
📖 Notes
Now you also have a new option to use symbols instead of their defined names, for example, AxiomX.pi can be re-written as AxiomX.π. But in the case of G, which can allude to both Gauss constant and Catalan's constant, there is a confusion. So, G is chosen as Gauss constant and g is chosen as Catalan's constant.
This software is licensed under MIT and no one is allowed to copy code from AxiomX. Hope you enjoy AxiomX.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axiomx-0.0.3.tar.gz.
File metadata
- Download URL: axiomx-0.0.3.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c629ca1545c0de7a0808c4ff2d2e03f97580f3ba8459465aeb79027717ff23b1
|
|
| MD5 |
f04a557c9ef1768335b62e87717b4344
|
|
| BLAKE2b-256 |
282596f67ee1a51bb2819c42c8531eb19aa482eccaaa9ca8b556be6c8ee3bc09
|
File details
Details for the file axiomx-0.0.3-py3-none-any.whl.
File metadata
- Download URL: axiomx-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f1d1d9343579e4c6e19fa63c2967fb44698bbc30d77c69c36164843a1ef270
|
|
| MD5 |
bb091bae110bea0f6888a3f839e69afd
|
|
| BLAKE2b-256 |
e2fa5da3d968f6647ec7d90ddecaa826971704c95b6f774e18c1c18cb7f59f22
|