multi-maths


Namemulti-maths JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttps://github.com/gsmx64/python-adv-bootcamp-cf/tree/main/class03/challenge
SummaryAn arithmetic, geometry & statistics package.
upload_time2023-06-22 22:03:41
maintainer
docs_urlNone
authorGonzalo Mahserdjian
requires_python>=3.7
licenseGNU/GPL version 3
keywords multi maths arithmetic geometry statistics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Multi Maths

## About package

Package for arithmetic, geometry y statistics


### Install with pip3

```
pip install multi_maths

or

pip3 install multi_maths
```


### Using from console

```
python -m multi_maths.cli ari add 2 3 -l en -r text
>>> 5.0
```

```
python -m multi_maths.cli ari add 2 3 7
>>> 12.0
```


### Init the class: the variable "response" on "digit" value returns only value:

```
from multi_maths.core import Core

core = Core()
core.set_lang('en')  # en, es
core.set_response('digit')  # digit, text
print(core.run('ari', 'add', (2, 3, 4)))
9.0
```


### Init the class: the variable "response" on "text" value returns value inside legend:

```
from multi_maths.core import Core

core = Core()
core.set_lang('en')  # en, es
core.set_response('text')  # digit, text
```


## Arithmetic
```
print(core.run('ari', 'add', (2, 3, 4)))
The addition result is: 9.0
```

```
print(core.run('ari', 'sub', (4, 3)))
The subtraction result is: 1.0
```

```
print(core.run('ari', 'mul', (3, 3, 2)))
The multiplication result is: 18.0
```

```
print(core.run('ari', 'div', (9, 3)))
The division result is: 3.0
```

```
print(core.run('ari', 'mod', (21, 200)))
The modulus result is: 42.0
```

```
print(core.run('ari', 'mod', (32, 517)))
The modulus result is: 165.44
```

```
print(core.run('ari', 'exp', (3, 3)))
The exponentiation result is: 27.0
```

```
print(core.run('ari', 'flo', (9, 3)))
The floor division result is: 3.0
```


## Geometry

```
print(core.run('geo', 'ca', (4,)))
The circle area result is: 50.26548245743669
```

```
print(core.run('geo', 'cc', (5,)))
The circle circumference result is: 31.41592653589793
```

```
print(core.run('geo', 'ta', (5,5)))
The triangle area result is: 12.5
```

```
print(core.run('geo', 'tp', (5, 5, 5)))
The triangle perimeter result is: 5.0
```

```
print(core.run('geo', 'sa', (5, 5)))
The square area result is: 25.0
```

```
print(core.run('geo', 'sp', (5,)))
The square perimeter result is: 20.0
```

```
print(core.run('geo', 'ra', (4, 2)))
The rectangle area result is: 8.0
```

```
print(core.run('geo', 'rp', (4, 2)))
The rectangle perimeter result is: 12.0
```

```
print(core.run('geo', 'pa', (4, 3)))
The parallelogram area result is: 12.0
```

```
print(core.run('geo', 'pp', (4, 3)))
The parallelogram perimeter result is: 14.0
```


## Statistics

```
print(core.run('stat', 'sd', (data_list,)))
The standard deviation result is: 12.739141034061687
```

```
print(core.run('stat', 'sd', (data_list, 7)))
The standard deviation result is: 12.739141034061687
```

```
print(core.run('stat', 'mean', (data_list,)))
The mean result is: 17.5
```

```
print(core.run('stat', 'med', (data_list,)))
The median result is: 14.0
```

```
print(core.run('stat', 'mode', (data_list,)))
The mode result is: 8
```

## Repository

* [Class 03 Challenge's Repository](https://github.com/gsmx64/python-adv-bootcamp-cf/tree/main/class03/challenge)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gsmx64/python-adv-bootcamp-cf/tree/main/class03/challenge",
    "name": "multi-maths",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "multi maths,arithmetic,geometry,statistics",
    "author": "Gonzalo Mahserdjian",
    "author_email": "Gonzalo Mahserdjian <gsmx64@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/34/bf/f95f5d1552e784db0e3c040076561243945996b09f1ecdc056b9e2f8623a/multi_maths-1.0.7.tar.gz",
    "platform": null,
    "description": "# Multi Maths\r\n\r\n## About package\r\n\r\nPackage for arithmetic, geometry y statistics\r\n\r\n\r\n### Install with pip3\r\n\r\n```\r\npip install multi_maths\r\n\r\nor\r\n\r\npip3 install multi_maths\r\n```\r\n\r\n\r\n### Using from console\r\n\r\n```\r\npython -m multi_maths.cli ari add 2 3 -l en -r text\r\n>>> 5.0\r\n```\r\n\r\n```\r\npython -m multi_maths.cli ari add 2 3 7\r\n>>> 12.0\r\n```\r\n\r\n\r\n### Init the class: the variable \"response\" on \"digit\" value returns only value:\r\n\r\n```\r\nfrom multi_maths.core import Core\r\n\r\ncore = Core()\r\ncore.set_lang('en')  # en, es\r\ncore.set_response('digit')  # digit, text\r\nprint(core.run('ari', 'add', (2, 3, 4)))\r\n9.0\r\n```\r\n\r\n\r\n### Init the class: the variable \"response\" on \"text\" value returns value inside legend:\r\n\r\n```\r\nfrom multi_maths.core import Core\r\n\r\ncore = Core()\r\ncore.set_lang('en')  # en, es\r\ncore.set_response('text')  # digit, text\r\n```\r\n\r\n\r\n## Arithmetic\r\n```\r\nprint(core.run('ari', 'add', (2, 3, 4)))\r\nThe addition result is: 9.0\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'sub', (4, 3)))\r\nThe subtraction result is: 1.0\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'mul', (3, 3, 2)))\r\nThe multiplication result is: 18.0\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'div', (9, 3)))\r\nThe division result is: 3.0\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'mod', (21, 200)))\r\nThe modulus result is: 42.0\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'mod', (32, 517)))\r\nThe modulus result is: 165.44\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'exp', (3, 3)))\r\nThe exponentiation result is: 27.0\r\n```\r\n\r\n```\r\nprint(core.run('ari', 'flo', (9, 3)))\r\nThe floor division result is: 3.0\r\n```\r\n\r\n\r\n## Geometry\r\n\r\n```\r\nprint(core.run('geo', 'ca', (4,)))\r\nThe circle area result is: 50.26548245743669\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'cc', (5,)))\r\nThe circle circumference result is: 31.41592653589793\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'ta', (5,5)))\r\nThe triangle area result is: 12.5\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'tp', (5, 5, 5)))\r\nThe triangle perimeter result is: 5.0\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'sa', (5, 5)))\r\nThe square area result is: 25.0\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'sp', (5,)))\r\nThe square perimeter result is: 20.0\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'ra', (4, 2)))\r\nThe rectangle area result is: 8.0\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'rp', (4, 2)))\r\nThe rectangle perimeter result is: 12.0\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'pa', (4, 3)))\r\nThe parallelogram area result is: 12.0\r\n```\r\n\r\n```\r\nprint(core.run('geo', 'pp', (4, 3)))\r\nThe parallelogram perimeter result is: 14.0\r\n```\r\n\r\n\r\n## Statistics\r\n\r\n```\r\nprint(core.run('stat', 'sd', (data_list,)))\r\nThe standard deviation result is: 12.739141034061687\r\n```\r\n\r\n```\r\nprint(core.run('stat', 'sd', (data_list, 7)))\r\nThe standard deviation result is: 12.739141034061687\r\n```\r\n\r\n```\r\nprint(core.run('stat', 'mean', (data_list,)))\r\nThe mean result is: 17.5\r\n```\r\n\r\n```\r\nprint(core.run('stat', 'med', (data_list,)))\r\nThe median result is: 14.0\r\n```\r\n\r\n```\r\nprint(core.run('stat', 'mode', (data_list,)))\r\nThe mode result is: 8\r\n```\r\n\r\n## Repository\r\n\r\n* [Class 03 Challenge's Repository](https://github.com/gsmx64/python-adv-bootcamp-cf/tree/main/class03/challenge)\r\n",
    "bugtrack_url": null,
    "license": "GNU/GPL version 3",
    "summary": "An arithmetic, geometry & statistics package.",
    "version": "1.0.7",
    "project_urls": {
        "Bug Tracker": "https://github.com/gsmx64/python-adv-bootcamp-cf/issues",
        "Homepage": "https://github.com/gsmx64/python-adv-bootcamp-cf/tree/main/class03/challenge"
    },
    "split_keywords": [
        "multi maths",
        "arithmetic",
        "geometry",
        "statistics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28252a08896cee2f6840755d59d743982871db498bf9ce0196fbfbaee62764f8",
                "md5": "a0ee86b6de641d7d9fd7fef9b972d087",
                "sha256": "a741771149932977dfbae1a5876955abe79aa9bb8d3661e8f844806f86f6fad8"
            },
            "downloads": -1,
            "filename": "multi_maths-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a0ee86b6de641d7d9fd7fef9b972d087",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 29745,
            "upload_time": "2023-06-22T22:03:39",
            "upload_time_iso_8601": "2023-06-22T22:03:39.076173Z",
            "url": "https://files.pythonhosted.org/packages/28/25/2a08896cee2f6840755d59d743982871db498bf9ce0196fbfbaee62764f8/multi_maths-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "34bff95f5d1552e784db0e3c040076561243945996b09f1ecdc056b9e2f8623a",
                "md5": "31fec3aefe77af00ae33fb317383f8f1",
                "sha256": "c1285ff183a36dd55a09e9f96d2040d191e6b91c5438d47443ca2d80642779f3"
            },
            "downloads": -1,
            "filename": "multi_maths-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "31fec3aefe77af00ae33fb317383f8f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 25066,
            "upload_time": "2023-06-22T22:03:41",
            "upload_time_iso_8601": "2023-06-22T22:03:41.583046Z",
            "url": "https://files.pythonhosted.org/packages/34/bf/f95f5d1552e784db0e3c040076561243945996b09f1ecdc056b9e2f8623a/multi_maths-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-22 22:03:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gsmx64",
    "github_project": "python-adv-bootcamp-cf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "multi-maths"
}
        
Elapsed time: 0.09069s