# PyMathRender
Pretty rendering method for mathematic functions
## Install
From Pypi:
`py -m pip install PyMathRender`
From GitHub:
`py -m pip install git+https://github.com/donno2048/Maths`
## Use
```py
from PyMathRender import main
main("sum([math.cos(3 ** n * x / 1000) / (3 ** n) for n in range(10)])", Text = r"$\sum_{n=0}^\infty\frac{\cos\left(3^nx\right)}{3^n}$ Is continuous but not differentiable in any point", LineColor = "blue", TextColor = "blue", start = 0, end = 10, step = .001, required = ["math"])
```
Or:
```py
from PyMathRender import main
from math import cos, e, sqrt
def fun(x): return sum([cos(3 ** n * x / 1000) / (e ** (sqrt(3 ** n) - 1)) for n in range(10)])
main(fun, Text = r"$\sum_{n=0}^\infty\frac{\cos\left(3^nx\right)}{e^{-1+\sqrt{3^n}}}$ Is smooth but not analytic in any point", LineColor = "red", TextColor = "red", start = 0, end = 10, step = .001)
```
The first argument is the function (`x` is the variable if you use the string method) - It is the only required argument,
`Text` is the additional text,
`LineColor` is the color of the line plotted, either `blue`, `green`, `red`, `cyan`, `magenta`, `yellow`, `black` or `white`,
`TextColor` is the color of the additional text, same colors as LineColor,
`start`, `end` and `step` are the starting and ending points and the size of the steps between them,
`required` is a list of required packages for the function - needed only using the string method.
Raw data
{
"_id": null,
"home_page": "https://github.com/donno2048/Maths",
"name": "PyMathRender",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Elisha Hollander",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/87/ee/047af328adb939105560dbd316d0437e36ba12f9f776d8eb85e180453ca4/PyMathRender-1.0.2.tar.gz",
"platform": "",
"description": "# PyMathRender\n\nPretty rendering method for mathematic functions\n\n## Install\n\nFrom Pypi:\n\n`py -m pip install PyMathRender`\n\nFrom GitHub:\n\n`py -m pip install git+https://github.com/donno2048/Maths`\n\n## Use\n\n```py\nfrom PyMathRender import main\nmain(\"sum([math.cos(3 ** n * x / 1000) / (3 ** n) for n in range(10)])\", Text = r\"$\\sum_{n=0}^\\infty\\frac{\\cos\\left(3^nx\\right)}{3^n}$ Is continuous but not differentiable in any point\", LineColor = \"blue\", TextColor = \"blue\", start = 0, end = 10, step = .001, required = [\"math\"])\n```\n\nOr:\n\n```py\nfrom PyMathRender import main\nfrom math import cos, e, sqrt\ndef fun(x): return sum([cos(3 ** n * x / 1000) / (e ** (sqrt(3 ** n) - 1)) for n in range(10)])\nmain(fun, Text = r\"$\\sum_{n=0}^\\infty\\frac{\\cos\\left(3^nx\\right)}{e^{-1+\\sqrt{3^n}}}$ Is smooth but not analytic in any point\", LineColor = \"red\", TextColor = \"red\", start = 0, end = 10, step = .001)\n```\n\nThe first argument is the function (`x` is the variable if you use the string method) - It is the only required argument,\n\n`Text` is the additional text,\n\n`LineColor` is the color of the line plotted, either `blue`, `green`, `red`, `cyan`, `magenta`, `yellow`, `black` or `white`,\n\n`TextColor` is the color of the additional text, same colors as LineColor,\n\n`start`, `end` and `step` are the starting and ending points and the size of the steps between them,\n\n`required` is a list of required packages for the function - needed only using the string method.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Pretty rendering method for mathematic functions",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/donno2048/Maths"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eb79c3e8b1d750dbd0c4c0fcdc46bb43b66ebd08dcf0d5f675d08cd74500d5b4",
"md5": "fcaf700cc6dfbbf53d10977c2c2b2d81",
"sha256": "4e4d666f0fa34c9af33bb7c74a4e1592fa1da1e116ec567987e8a82d899c67fc"
},
"downloads": -1,
"filename": "PyMathRender-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fcaf700cc6dfbbf53d10977c2c2b2d81",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3293,
"upload_time": "2022-02-05T02:45:56",
"upload_time_iso_8601": "2022-02-05T02:45:56.907379Z",
"url": "https://files.pythonhosted.org/packages/eb/79/c3e8b1d750dbd0c4c0fcdc46bb43b66ebd08dcf0d5f675d08cd74500d5b4/PyMathRender-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "87ee047af328adb939105560dbd316d0437e36ba12f9f776d8eb85e180453ca4",
"md5": "3eb7ed75ee515970528765c31d7adf21",
"sha256": "2df65da2cf7caf123fe8e7ac597e09d925c3c9988563a0dd15cb6b8e8dfe5aa5"
},
"downloads": -1,
"filename": "PyMathRender-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "3eb7ed75ee515970528765c31d7adf21",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2899,
"upload_time": "2022-02-05T02:45:58",
"upload_time_iso_8601": "2022-02-05T02:45:58.794464Z",
"url": "https://files.pythonhosted.org/packages/87/ee/047af328adb939105560dbd316d0437e36ba12f9f776d8eb85e180453ca4/PyMathRender-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-02-05 02:45:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "donno2048",
"github_project": "Maths",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pymathrender"
}