arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0811.1061cs.SC
收藏

如何将脚本语言转换为计算机代数的特定领域语言

How to turn a scripting language into a domain specific language for computer algebra

Raphael Jolly, Heinz Kredel

摘要:

我们已经开发了两个计算机代数系统,meditor [Jolly:2007]和JAS [Kredel:2006]。这些CAS系统可作为Java库使用。对于交互式输入和操作数学表达式的用例,我们的库需要一个脚本前端。大多数其他CAS为此发明并实现了自己的脚本接口。然而,我们不想重新发明轮子,并建议使用一种可以访问Java代码的当代脚本语言。在本文中,我们讨论了计算机代数中脚本语言的要求,并检查Python,Ruby,Groovy和Scala语言是否满足这些要求。我们的结论是,除了一些小问题,这些语言中的任何一种都适合我们的目的。

英文摘要:

We have developed two computer algebra systems, meditor [Jolly:2007] and JAS [Kredel:2006]. These CAS systems are available as Java libraries. For the use-case of interactively entering and manipulating mathematical expressions, there is a need of a scripting front-end for our libraries. Most other CAS invent and implement their own scripting interface for this purpose. We, however, do not want to reinvent the wheel and propose to use a contemporary scripting language with access to Java code. In this paper we discuss the requirements for a scripting language in computer algebra and check whether the languages Python, Ruby, Groovy and Scala meet these requirements. We conclude that, with minor problems, any of these languages is suitable for our purpose.

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

↑