initial commit

This commit is contained in:
2022-11-23 17:22:15 +08:00
commit d4d248ee17
35 changed files with 4845 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
from latex2sympy2 import latex2sympy
def generate_func(latex_input: str) -> function:
latex_clean = latex_input.replace('\ ', '')
res: str
try:
res = latex2sympy(latex_clean)
except Exception as e:
print(e)
def func(input: dict):
return eval(res)