https://github.com/matheusfillipe/texsolver
Proof of concept library and scripts for solving the math from latex expressions using sympy. It includes an streamlit app, flask api, simple cli and emacs module.
https://github.com/matheusfillipe/texsolver
calculus emacs eqations flask latex math mathematics python solver sympy
Last synced: 2 months ago
JSON representation
Proof of concept library and scripts for solving the math from latex expressions using sympy. It includes an streamlit app, flask api, simple cli and emacs module.
- Host: GitHub
- URL: https://github.com/matheusfillipe/texsolver
- Owner: matheusfillipe
- Created: 2021-08-20T19:43:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T04:28:32.000Z (almost 5 years ago)
- Last Synced: 2025-05-29T13:27:02.923Z (about 1 year ago)
- Topics: calculus, emacs, eqations, flask, latex, math, mathematics, python, solver, sympy
- Language: Python
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TexSolver
A simple streamlit test webapp that reads a latex input and gives possible results from it.
The goal is to automate a bit of the math writing with latex. It uses sympy for the solving of various expressions types.
### DEMO
`demo.py` is a streamlit proof of concept for this idea.
You will need to install [streamlit](https://streamlit.io/) and run it with:
```sh
streamlit run demo.py
```
#### Examples



### Other tools
`api.py` is a simple flask api with a single endpoint.
`cli.py` is cli that takes a latex math expression as input and returns possible completions as lines.
### The library
There is only one function that matters:
```python
from texsuggest import solve
print(solve(input("Expression to solve: ")))
```
`solve` will return a list of strings representing latex formated math expressions