Skip to main content

Module containing a lot of general and commonly used mathematical functions.

Project description

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.

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

mathemagic-1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

mathemagic-1.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file mathemagic-1.1.tar.gz.

File metadata

  • Download URL: mathemagic-1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mathemagic-1.1.tar.gz
Algorithm Hash digest
SHA256 d2441c3812b6df169258ab5575a6b589f4d5ef9954f3004c4345f987d3f54a30
MD5 ee0fa26b70f1f42f9dbb2a28394e8223
BLAKE2b-256 a492074c8321c3ea8c830e75e2c2a4e718c0ef91d4e4ab85b278c35e75b89e1d

See more details on using hashes here.

File details

Details for the file mathemagic-1.1-py3-none-any.whl.

File metadata

  • Download URL: mathemagic-1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mathemagic-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9421a56c0bb9f4685a299186e9de42ce776b0d627d346e35985933b12f3c5f1
MD5 35625884aa5a0de2c8137591ea07eb9d
BLAKE2b-256 79dfebccfd52eba94833c3cfba6fedf9ebaf1e42d79169029a547ed1e2cdfc0c

See more details on using hashes here.

Supported by

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