shigma


Nameshigma JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/lekritz/shigma
SummaryAllows for doing mathematical sigma and pi notation.
upload_time2024-02-06 13:44:42
maintainer
docs_urlNone
authorLekritz (Henryk Popioɫek)
requires_python>=3.0
licenseM.I.T. License
keywords python sigma pi maths math mathematics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:
```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.
```python
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!
```python
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
```python
out = pi_not(1, "i**2", 10)
```
*unless of course...*
```python
out = Π(1, "i**2", 10)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lekritz/shigma",
    "name": "shigma",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": "",
    "keywords": "python,sigma,pi,maths,math,mathematics",
    "author": "Lekritz (Henryk Popio\u026bek)",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# shigma\r\n*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.\r\n## How to use\r\n### Sigma\r\nEnvision yourself a sigma notation.\r\n$$\\sum_{i=1}^{10} i^2$$\r\nis this it?\r\nThis is how you write that in raw Python:\r\n```python\r\narr = []\r\n\r\nfor i in range(1, 10 + 1):\r\n  arr.append(i**2)\r\n\r\nout = sum(arr)\r\n```\r\nThis is how you write that with shigma.\r\nThis is how you'd write that with shigma.\r\n```python\r\nout = sigma_not(1, \"i**2\", 10)\r\n```\r\nSeems simple enough, right? If you are weird, or appreciate how unicode has become the standard encoding \u00af\\\\\\_(\u30c4)_/\u00af. Use the unicode symbol instead!\r\n```python\r\nout = \u03a3(1, \"i**2\", 10)\r\n```\r\nYeah, unprofessional I know.\r\n### Pi\r\nYou'll probably be using prodcut notation a lot too. To rewrite this:\r\n$$\\prod_{i=1}^{10} i^2$$\r\ninto Python with the shigma package, you write this\r\n```python\r\nout = pi_not(1, \"i**2\", 10)\r\n```\r\n*unless of course...*\r\n```python\r\nout = \u03a0(1, \"i**2\", 10)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "M.I.T. License",
    "summary": "Allows for doing mathematical sigma and pi notation.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/lekritz/shigma"
    },
    "split_keywords": [
        "python",
        "sigma",
        "pi",
        "maths",
        "math",
        "mathematics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b26bf1ac57d18f04edfa118e8a1e4ba17604c4977b997e7f05f2b4300dfb2d93",
                "md5": "9e53a7458a7fa88465a4572fb0cfb02d",
                "sha256": "971a934af2671c435924c297cdd1cae50f3f9b07a5cca281ef5380151b840320"
            },
            "downloads": -1,
            "filename": "shigma-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e53a7458a7fa88465a4572fb0cfb02d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 4115,
            "upload_time": "2024-02-06T13:44:42",
            "upload_time_iso_8601": "2024-02-06T13:44:42.509864Z",
            "url": "https://files.pythonhosted.org/packages/b2/6b/f1ac57d18f04edfa118e8a1e4ba17604c4977b997e7f05f2b4300dfb2d93/shigma-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-06 13:44:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lekritz",
    "github_project": "shigma",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "shigma"
}
        
Elapsed time: 0.19025s