Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Preprint
Data sources: ZENODO
addClaim

EinsteinKPy2Tex: A Python Tool for Computing and Exporting General Relativity Tensors to LaTeX

Authors: Ntelis, Pierros;

EinsteinKPy2Tex: A Python Tool for Computing and Exporting General Relativity Tensors to LaTeX

Abstract

We present \href{https://github.com/lontelis/Einsteinpy_to_latex}{{\color{cyan}\texttt{EinsteinKPy2Tex}}}, an open-source Python package that computes fundamental geometric quantities for the Friedmann-Lema\^{i}tre-Robertson-Walker (FLRW) and Schwarzschild metrics using the EinsteinPy library. The code automatically calculates the Christoffel symbols, Riemann curvature tensor, Ricci tensor and scalar, Einstein tensor, geodesic equations, and a complete set of quadratic curvature invariants: the Kretschmann scalar ($R_{\mu\nu\rho\sigma}R^{\mu\nu\rho\sigma}$), the Ricci squared invariant ($R_{\mu\nu}R^{\mu\nu}$), the Gauss–Bonnet scalar ($R^2-4R_{\mu\nu}R^{\mu\nu}+R_{\mu\nu\rho\sigma}R^{\mu\nu\rho\sigma}$), the Weyl tensor, and the Weyl squared invariant ($C_{\mu\nu\rho\sigma}C^{\mu\nu\rho\sigma}$). All results are exported as professionally formatted \LaTeX\ documents showing only non‑zero components, ready for direct inclusion in research papers and educational materials. The FLRW implementation is essential for cosmology, enabling the study of the universe's large-scale structure and dynamics, while the Schwarzschild implementation is fundamental for black hole physics, describing the spacetime geometry around non-rotating compact objects. The code includes built‑in citations for Einstein (1915) and the EinsteinPy library (Ribeiro et al., 2020), ensuring proper academic attribution. \href{https://github.com/lontelis/Einsteinpy_to_latex}{{\color{cyan}\texttt{EinsteinKPy2Tex}}} is designed for educators, students, and researchers needing rapid, accurate tensor calculations with publication-ready output. The software is available at \href{https://github.com/lontelis/Einsteinpy_to_latex}{{\color{cyan}\texttt{GitHub}}} under an MIT license.

Powered by OpenAIRE graph
Found an issue? Give us feedback