Skip to main content

Provides large amount of unique mathematical functions and operators

Project description

#supMath Library#

##What is this## This module contains plenty of different mathematical functions and operators which can be used in loads of operations.

##Quick Guide## Library consists of 3 modules: supOperators, supGeometry and supConverters. Here are some funcs from supOperators module:

sigma(start,end,rule):

Returns the sum of rules with i in range[start,end]

sigma(1,4,”i+2”) =>

You should be careful with these type funcs, as to transform string formula to an operating one, eval() func is used - You have been warned!

There is also an advanced version where powers are introduced the way they are in int_sum(power,n)

div_sigma(num,power,aliquocy):

Returns sum of all num’s divs raising each div to the power. aliquocy is 1 ==> the num**power is subtracted from result.

It can be a powerful tool when working with nums and their properties. With help of this, you can check if num is prime or perfect.

int_sum(power,n):

Returns the int sum from 1 to n (power = 1):

int_sum(1,4) => 1+2+3+4 => 10

Increasing the power, returns sum of sums of ints from 1 to n.

int_sum(2,4) => int_sum(1,1) + int_sum(1,2) + int_sum(1,3) + int_sum(1,4) => 20

You can increase the power indefinitely. This tool gives an opportunity to work with Pascal triangle and its sequences. Func actually returns n-th unit of (power+2)-th sequence in Pascal triangle.

supGeometry module contains various geometrical formulas, more of them are coming in further library updates:

pythagor(a,b):

returns the hypotenuse value => sqrt(a**2+b**2)

circle_area(r):

returns circle’s area with radiues given => pi*r**2

supConverters module has a range of measure-to measure and numerical converting functions:

convert(num,scale_base):

Converts decimal to any notation scale:

convert(2,2) => 10 convert(10,16) => A

As you can see, letters are supported.

lb_to_kg(lb):

Converts pounds to kilograms. kg_to_lb(kg) is also supported

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

supmath-0.5.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

supMath-0.5.1.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file supmath-0.5.1.1.tar.gz.

File metadata

  • Download URL: supmath-0.5.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for supmath-0.5.1.1.tar.gz
Algorithm Hash digest
SHA256 f14b826cb607f5b6935f88b2b7252c5cd6fa778a6a59a698297796bc51e54fdc
MD5 a9d76b3cc2acad79cf9fb414bddaf746
BLAKE2b-256 29b8b457dd7c071c93c35a8d1af80d77d458fd35eb183afa1b72fdbba3c33fab

See more details on using hashes here.

File details

Details for the file supMath-0.5.1.1-py3-none-any.whl.

File metadata

  • Download URL: supMath-0.5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for supMath-0.5.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c84a0cf3b169788d32810ab8d9c6d7dc192785f03c2e765e4cb415ac8fc3c5c
MD5 4e1ae5ae8d3de90f80c885505fbeaa3c
BLAKE2b-256 c3ae89c2570052ccdb2c9ca4023687a3b7b950b65c3074c58d8eb60286401c81

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