Skip to main content

Allows for doing mathematical sigma and pi notation.

Project description

shigma

Shigma is a Python package allowing for sigma (Σ) and pi (Π) notation. It is very easy to learn and works like you'd expect. You'l get the hang of it very fast.

How to use

Sigma

Envision yourself a sigma notation. $$\sum_{i=1}^{10} i^2$$ is this it? This is how you write that in raw Python:

arr = []

for i in range(1, 10 + 1):
  arr.append(i**2)

out = sum(arr)

This is how you write that with shigma. This is how you'd write that with shigma.

out = sigma_not(1, "i**2", 10)

Seems simple enough, right? If you are weird, or appreciate how unicode has become the standard encoding ¯\_(ツ)_/¯. Use the unicode symbol instead!

out = Σ(1, "i**2", 10)

Yeah, unprofessional I know.

Pi

You'll probably be using prodcut notation a lot too. To rewrite this: $$\prod_{i=1}^{10} i^2$$ into Python with the shigma package, you write this

out = pi_not(1, "i**2", 10)

unless of course...

out = Π(1, "i**2", 10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

shigma-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shigma-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for shigma-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 971a934af2671c435924c297cdd1cae50f3f9b07a5cca281ef5380151b840320
MD5 9e53a7458a7fa88465a4572fb0cfb02d
BLAKE2b-256 b26bf1ac57d18f04edfa118e8a1e4ba17604c4977b997e7f05f2b4300dfb2d93

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