NRPyLaTeX: A LaTeX interface to computer algebra systems for general relativity
Kenneth J. Sible, Zachariah B. Etienne

TL;DR
NRPyLaTeX provides a seamless LaTeX interface for inputting complex tensor expressions into SymPy, facilitating easier manipulation and code generation for general relativity research.
Contribution
It introduces a LaTeX-based input method for tensor expressions into SymPy, with configuration, error handling, and compatibility with other CASs, streamlining tensor computations in relativity.
Findings
Enables direct LaTeX input of tensor expressions into SymPy.
Supports output compatible with Mathematica and Maple.
Includes error handling and configuration features.
Abstract
While each computer algebra system (CAS) contains its own unique syntax for inputting mathematical expressions, LaTeX is perhaps the most widespread language for typesetting mathematics. NRPyLaTeX (NL) enables direct LaTeX input of complex tensorial expressions (written in Einstein notation) relevant to general relativity and differential geometry into the SymPy CAS. As SymPy also supports output compatible with the Mathematica and Maple CASs, NL lowers the learning curve for inputting and manipulating tensorial expressions in three widely used CASs. LaTeX however is a typesetting language, and as such is not designed to resolve ambiguities in mathematical expressions. To address this, NL implements a convenient configuration interface that, e.g., defines variables with certain attributes. Configuration commands appear as LaTeX comments, so that entire NL workflows can fit seamlessly…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematics, Computing, and Information Processing
