Skip to main content

A dynamic Python math library containing numerous mathematical functions implemented from scratch.

Project description

AxiomX

AxiomX is a lightweight Python scientific math library focused on numerical computation, series-based evaluation, and foundational mathematical functions. It is designed to be simple, fast and extensible—ideal for learning, experimentation, and building advanced math systems.


🚀 Features

📚 Constants (included in AxiomX.constants)

  • pi
  • e
  • lemniscate constant (lemniscate)
  • gauss constant (gauss)
  • infinity
  • square roots of 2, 3 and 5 (sqrt_2, sqrt_3, sqrt_5)
  • golden ratio (golden_ratio)
  • silver ratio (silver_ratio)
  • metallic_ratio(n) - Returns the metallic ratio of the order n.
  • euler-mascheroni constant (euler_mascheroni)

🔢 Mathematical Functions (included in AxiomX.functions)

  • absolute(x)
  • sqrt(n) - using Halley's Method
  • cbrt(n) - using Newton-Raphson Method
  • gamma(x)
  • factorial(n) - using gamma function
  • zeta(n) - returns the Riemann Zeta function evaluated at n
  • beta(n) - returns the Dirichlet Beta function evaluated at n
  • bc(n, k) - returns the binomial coefficient evaluated at n and k
  • pascal(row) - returns a list containing all the numbers at the rowth row in the Pascal Triangle.

📈 Exponential Functions (included in AxiomX.exp)

  • exp(n) - returns e^n, where e is Euler's number.
  • ln(x) - returns the natural logarithm of x.
  • log10(x) - returns the common logarithm of x.
  • log2(x) - returns the binary logarithm of x.
  • log(arg, base) - returns the logarithm of arg to the base base.

📐 Trigonometric Functions (included in AxiomX.trig)

  • sin(x) — Calculated from Taylor series expansion
  • cos(x) — derived from sine
  • tan(x), cot(x), sec(x), cosec(x)
  • radians(deg) — degrees → radians
  • degrees(rad) — radians → degrees

🔄 Inverse Trigonometric Functions (also included in AxiomX.trig)

  • arcsin(x) — Newton's method
  • arccos(x)
  • arctan(x)
  • arccot(x)
  • arcsec(x)
  • arccosec(x)

🔥 Hyperbolic Functions and Inverse Functions (included in AxiomX.hyperbolic)

  • sinh(x) - calculated using formula
  • cosh(x), tanh(x), sech(x), cosech(x), coth(x)
  • arcsinh(x), arccosh(x), arctanh(x), arccoth(x), arcsech(x), arccosech(x)

🧠 Usage

from AxiomX import trig, constants, calculus

print(trig.sin(constants.pi)) # prints 0
print(calculus.converges(lambda x: 1 / x)) # prints False

🛣️ Roadmap

Upcoming improvements:

  • Limit evaluation engine
  • Convergence detection for series
  • Combinatorics utilities, Pascal's Triangle
  • Performance optimizations.

🤝 Contributing

Contributions are welcome!\You can help by:

  • Reporting bugs in our Discord
  • Adding suggestions
  • Improving performance.

📦 Installation

You can install AxiomX by going into the terminal and typing pip install AxiomX.


📄 License

This software is licensed under MIT and no one is supposed to copy code from AxiomX.


🌐 Links

Website: https://axiomxpy.wordpress.com
Discord Invite: https://discord.gg/CrEf8mDB


⭐ Support

If you like AxiomX, consider:

  • Sharing it with other friends
  • Using it in your projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axiomx-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axiomx-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file axiomx-0.1.1.tar.gz.

File metadata

  • Download URL: axiomx-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for axiomx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ca17192b9efdbc31bf292fd8aa1ec277673679c68bceceb5e37f874c9d8f012
MD5 fc8f8ee567c539bcac1afb6821d336b1
BLAKE2b-256 21bb9f7d613ded0d88ebdfad4adcbf119bce5285a4a633fde448484cb4700b9d

See more details on using hashes here.

File details

Details for the file axiomx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: axiomx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for axiomx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa9c104f613f05ab0533a3426bb2f0c633403eee102cd7e5688eeb168dfec331
MD5 e6f6bacb44d7ce350e8624cde9945d52
BLAKE2b-256 a7b452a56ddc572e40790a5da50c21616c4d3db3503ab50704ccdd8c28d53acf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page