Latexify_py
Have you ever wished to include a mathematical description for your Python function but found the process time-consuming? latexify_py simplifies this by enabling you to add LaTeX math descriptions with just a single decorator.
import math
import latexify
@latexify.function
def f(x):
if x==0:
return 0
else:
return math.sin(x)// x
print(f)
First, you need to install it:
pip install latexify-py==0.2.0