Skip to main content

A simple math operations library.

Project description

📘 basicnumeriq

basicnumeriq is a simple Python module that provides basic mathematical and statistical functions. You can use it to perform various operations on lists of numbers.

🔧 Installation

You can install the library using pip:

pip install basicnumeriq

🚀 Usage

After adding the module to your project, you can use the following functions:

🔢 sum

Calculates the sum of a list of numbers.

Example:

>>> sum([1, 2, 3])
6

➖ subtract

Calculates the difference of a list of numbers.

Example:

>>> subtract([10, 5, 2])
3

✖ multiply

Calculates the product of a list of numbers.

Example:

>>> multiply([2, 3, 4])
24

➗ divide

Calculates the division of a list of numbers.

Example:

>>> divide([100, 2, 5])
10.0

🔼 max

Finds the maximum number in a list.

Example:

>>> max([1, 2, 3, 4, 5])
5

🔽 min

Finds the minimum number in a list.

Example:

>>> min([1, 2, 3, 4, 5])
1

📏 size

Returns the size (number of elements) of a list.

Example:

>>> size([1, 2, 3, 4])
4

🔀 sort

Sorts a list of numbers.

Example:

>>> sort([3, 1, 4, 1, 5, 9, 2])
[1, 1, 2, 3, 4, 5, 9]

📊 mean

Calculates the mean (average) of a list of numbers.

Example:

>>> mean([1, 2, 3, 4, 5])
3.0

📉 median

Finds the median of a list of numbers.

Example:

>>> median([1, 2, 3, 4, 5])
3

📈 variance

Calculates the variance of a list of numbers.

Example:

>>> var([1, 2, 3, 4, 5])
2.0

📉 standard deviation

Calculates the standard deviation of a list of numbers.

Example:

>>> std([1, 2, 3, 4, 5])
1.41

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

basicnumeriq-0.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

basicnumeriq-0.0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file basicnumeriq-0.0.3.tar.gz.

File metadata

  • Download URL: basicnumeriq-0.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for basicnumeriq-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d87788df9021bec4258b565a11ae4c6a72ca5ecd16ca42da2a38e205bbde808f
MD5 5a0d54bcbc8dc5688d110df970c53f2a
BLAKE2b-256 a2b6325dccaa7780093597f4cf840b07718b6dec7d4cf9447f66d8343f9bdedc

See more details on using hashes here.

File details

Details for the file basicnumeriq-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: basicnumeriq-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for basicnumeriq-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8da63270bde312374fee8561c04b9c6185077dc1d6323bd9317e40ef73640d4a
MD5 cb9a5c36b5964417f2fc8c11b7015bbe
BLAKE2b-256 576df98a9c49acc8f665eb508a676d4c5d40b4ea67a229d61e761eb67fda8b83

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