Pytearcat:PYthon Tensor AlgebRa calCulATor
Pytearcat: PYthon TEnsor AlgebRa calCulATor
摘要:
本文介绍了Pytearcat的第一个版本,这是一个Python软件包,用于在理论物理的背景下计算张量代数运算,例如,在广义相对论中。考虑到张量的工作可能成为一项复杂的任务,人们通常依赖计算工具来执行张量计算。我们的目标是构建一个基于Python的张量计算器,它受益于免费和易于使用。Pytearcat语法类似于张量演算的常用物理符号,例如索引收缩的爱因斯坦符号。该版本允许用户执行许多张量运算,包括导数和级数展开,以及获取典型的广义相对论张量的例程。特别关注的是执行时间,导致为符号计算引入替代核心,从而实现更快的执行时间。Pytearcat的语法和多功能性是这个包最重要的功能,后者可以用来将Pytearcat扩展到理论物理的其他领域。
英文摘要:
This paper introduces the first release of Pytearcat, a Python package developed to compute tensor algebra operations in the context of theoretical physics, for instance, in general relativity. Given that working with tensors can become a complex task, people often rely on computational tools to perform tensor calculations. We aim to build a tensor calculator based on Python, which benefits from being free and easy to use. Pytearcat syntax resembles the usual physics notation for tensor calculus, such as the Einstein notation for index contraction. This version allows the user to perform many tensor operations, including derivatives and series expansions, along with routines to obtain the typical General Relativity tensors. A particular concern was put in the execution times, leading to incorporate an alternative core for the symbolic calculations, enabling to reach much faster execution times. The syntax and the versatility of Pytearcat are the most important features of this package, where the latter can be used to extend Pytearcat to other areas of theoretical physics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。