Skip to main content

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

Project description

AxiomX Math Library

AxiomX is a dynamic Python math library created by Eric Joseph. It includes numerous mathematical functions implemented from scratch, such as:

Features

🔢 Number Operations

  • absolute(x) - Absolute value
  • get_digits(x) - Extract digits of a number
  • gamma(x) - Lanczos-based Gamma function
  • factorial(x) - Based on Gamma function
  • sqrt(n) - Newton-Raphson square root

➗ Continued Fractions

  • continued_fraction(constant, [terms]) - This method generates a list of the denominators of the simple fraction of the give constant. The number of terms can be adjusted.
  • evaluate_continued_fraction(list) - This method evaluates a simple continued fraction by its denominators.

📚 Constants

Includes: 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) gauss - lemniscate / pi ramanujan - gelfond ** sqrt(163) euler_mascheroni - 0.577215664901533

🔢 Zeta Function

  • zeta(n) - Riemann zeta approximation

📈 Logarithmic & Exponential

  • exp(n) - Returns e**n.
  • ln(x) - Returns the natural logarithm of x.
  • log10(x) - Returns the common logarithm of x.
  • log(a, b) - Returns the logarithm of a to the base 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

python

import AxiomX as ax

print(ax.sin(ax.pi/2))

Notes

Gamma and some trigonometric handling are still experimental and may be refined in future versions. AxiomX is open-source and can be used anywhere. This library is licensed under MIT and no one is allowed to copy code from AxiomX. Hope you all enjoy AxiomX.

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.0.1.tar.gz (5.2 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.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for axiomx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e34d8b06c15d02f09cc6532b10fd1da87f39d83ac16decb0833c7edd22294f8d
MD5 329e653851005e4745ebf91a740da5be
BLAKE2b-256 15be2adf2b19fa62ae02909f88a4c8373d3d596615dc0229be8b128f49b5b0c3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for axiomx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06af2dd5418dcc05e760ae28b5a4347fc0d1d93e5f176fe9352b4fb4120887ba
MD5 9fcf03cebd64ce6d30389c287e055d8b
BLAKE2b-256 c0d562f0b1850d587575f992d17564aa67e7a19f72bef70204301062a0f2592c

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