Skip to main content

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

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:

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.

Metadata

Release files for PyMathRender 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMathRender 1.0.2
File Size Uploaded
PyMathRender-1.0.2.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMathRender 1.0.2
File Interpreter ABI Platform
PyMathRender-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / PyMathRender-1.0.2.tar.gz

Download URL PyMathRender-1.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2df65da2cf7caf123fe8e7ac597e09d925c3c9988563a0dd15cb6b8e8dfe5aa5
BLAKE2b-256 checksum
How to use checksums
87ee047af328adb939105560dbd316d0437e36ba12f9f776d8eb85e180453ca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / PyMathRender-1.0.2-py3-none-any.whl

Download URL PyMathRender-1.0.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e4d666f0fa34c9af33bb7c74a4e1592fa1da1e116ec567987e8a82d899c67fc
BLAKE2b-256 checksum
How to use checksums
eb79c3e8b1d750dbd0c4c0fcdc46bb43b66ebd08dcf0d5f675d08cd74500d5b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page