Skip to main content

mathemagic

Discord Server Invite PyPI Version Info

A Module containing a lot of general and commonly used mathematical functions written in Python.

Key Features

  • Commonly used and required mathematics operation in your finger tips.

  • Many new functions are being added regularly.

  • Proper error handling.

  • Easy to use.

  • Optimised in both speed and memory.

Installing

Python 3.x is recommended, but you can also install it on python2.x

To install the module, you can just run the following command:

# Linux/macOS (Replace python3 with python to install for python2.x)
python3 -m pip install -U mathematics

# Windows
pip install -U mathematics

To install the development version, do the following:

$ git clone https://github.com/FireHead90544/mathemagic
$ cd mathemagic
$ python3 -m pip install -U .

Quick Example

import mathemagic

mathemagic.pi(4) # Returns 3.1415, the value of pi till 4 digits after decimal.

mathemagic.even(140) # Returns True, as 140 is an even number.

mathemagic.calculate("100 + 200 - 150") # Returns 150, tries calculating the expression given.

mathemagic.factorial(5) # Returns 120 as 5! = 120, returns the factorial of a given number.

mathemagic.prime(20) # Returns False, as 20 is not a prime number, returns True/False based upon the number is prime or not.

You can find more examples in the documentation.

Metadata

Release files for mathemagic 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mathemagic 1.1
File Size Uploaded Provenance Actions
mathemagic-1.1.tar.gz 3.8 kB Without provenance Details for mathemagic-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mathemagic 1.1
File Interpreter ABI Platform Actions
mathemagic-1.1-py3-none-any.whl Python 3 none any Details for mathemagic-1.1-py3-none-any.whl

Total release size: 20.1 kB

Release files / mathemagic-1.1.tar.gz

Download URL mathemagic-1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d2441c3812b6df169258ab5575a6b589f4d5ef9954f3004c4345f987d3f54a30
BLAKE2b-256 checksum
How to use checksums
a492074c8321c3ea8c830e75e2c2a4e718c0ef91d4e4ab85b278c35e75b89e1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.6

Release files / mathemagic-1.1-py3-none-any.whl

Download URL mathemagic-1.1-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9421a56c0bb9f4685a299186e9de42ce776b0d627d346e35985933b12f3c5f1
BLAKE2b-256 checksum
How to use checksums
79dfebccfd52eba94833c3cfba6fedf9ebaf1e42d79169029a547ed1e2cdfc0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.6

Security for mathemagic 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page