https://github.com/allofphysicsgraph/latex2sympyparser
Translate valid Mathematical LaTeX to SymPy
https://github.com/allofphysicsgraph/latex2sympyparser
Last synced: 7 days ago
JSON representation
Translate valid Mathematical LaTeX to SymPy
- Host: GitHub
- URL: https://github.com/allofphysicsgraph/latex2sympyparser
- Owner: allofphysicsgraph
- License: cc0-1.0
- Created: 2024-05-26T01:23:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T22:53:35.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T03:27:21.758Z (over 1 year ago)
- Language: C++
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaTeX2SymPyParser
Translate valid Mathematical LaTeX to SymPy
The process is
make scanner
make read_tf_idf
./scanner.out path_to_latex documents
./read_tf_idf.out tf_idf
python read_offsets.py
sample input and output
\begin{equation}
u=\frac{-y}{x^2+y^2} ,
v=\frac{x}{x^2+y^2} , \text{and}
w=0
\end{equation}
u
=
\frac{-y}{x^2+y^2}
,
v
=
\frac{x}{x^2+y^2}
,
\text{and}
w
=
0
tf_idf scores are added when there is more than one document.
output files are tf_idf and offsets.