arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1906.11485cs.DLcs.SC
收藏

计算机代数系统和文档准备系统中特殊函数表达式的保语义双射映射

Semantic Preserving Bijective Mappings for Expressions involving Special Functions in Computer Algebra Systems and Document Preparation Systems

Andre Greiner-Petter, Moritz Schubotz, Howard S. Cohl, Bela Gipp

摘要:

目的:现代数学家和数学相关学科的科学家经常使用文档准备系统(DPS)来编写和使用计算机代数系统(CAS)来计算数学表达式。通常,他们在DPS和CAS之间手动翻译表达式。这个过程既耗时又容易出错。我们的目标是实现这种翻译的自动化。本文使用Maple和Mathematica作为CAS,LaTeX作为我们的DPS。设计/方法/办法:美国国家标准与技术研究所(NIST)的Bruce Miller开发了一系列特殊的LaTeX宏,这些宏创建了从数学符号到NIST数学函数数字图书馆(DLMF)中定义的链接。我们使用这些宏在DLMF和CAS中的公式之间执行基于规则的转换。此外,我们开发软件来简化新规则的创建并发现不一致之处。结果:我们创建了396个映射,并在Maple和DLMF之间成功翻译了58.8%的DLMF公式(2,405个表达式)。Maple和DLMF中的特殊函数定义有很大差异。因此,一个系统中的原子符号映射到另一个系统中的复合表达式。该翻译器还成功地用于在线数学纲要和CAS的自动验证。我们的评估技术发现了两个错误的DLMF和一个缺陷的Maple。独创性:本文介绍了LaTeX和CAS之间的第一个特殊功能的翻译工具。该方法改善了容易出错的手动翻译,并可用于验证数学在线纲要和CAS。

英文摘要:

Purpose: Modern mathematicians and scientists of math-related disciplines often use Document Preparation Systems (DPS) to write and Computer Algebra Systems (CAS) to calculate mathematical expressions. Usually, they translate the expressions manually between DPS and CAS. This process is time-consuming and error-prone. Our goal is to automate this translation. This paper uses Maple and Mathematica as the CAS, and LaTeX as our DPS. Design/methodology/approach: Bruce Miller at the National Institute of Standards and Technology (NIST) developed a collection of special LaTeX macros that create links from mathematical symbols to their definitions in the NIST Digital Library of Mathematical Functions (DLMF). We are using these macros to perform rule-based translations between the formulae in the DLMF and CAS. Moreover, we develop software to ease the creation of new rules and to discover inconsistencies. Findings: We created 396 mappings and translated 58.8% of DLMF formulae (2,405 expressions) successfully between Maple and DLMF. For a significant percentage, the special function definitions in Maple and the DLMF were different. Therefore, an atomic symbol in one system maps to a composite expression in the other system. The translator was also successfully used for automatic verification of mathematical online compendia and CAS. Our evaluation techniques discovered two errors in the DLMF and one defect in Maple. Originality: This paper introduces the first translation tool for special functions between LaTeX and CAS. The approach improves error-prone manual translations and can be used to verify mathematical online compendia and CAS.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑