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

Julia语言中广义复数的实现方法

Approaches to the implementation of generalized complex numbers in the Julia language

Migran N. Gevorkyan, Anna V. Korolkova, Dmitry S. Kulyabov

摘要:

在数学物理问题中,为了在理论计算中使用凯莱-克莱因模型来研究空间的结构,需要使用广义复数。在计算实验的情况下,这样的任务需要它们在程序设计语言中的高质量实现。现代程序设计语言中提出的广义复数的小型实现有几个缺点。在本文中,我们建议使用Julia语言作为实现广义复数的语言,尤其是因为它支持多分派机制。本文论证了实现广义复数的一种类型,即对偶数的方法。我们特别强调使用多分派机制来实现一个新的数值类型的描述。由此产生的实现对偶数可以被认为是一个完整的软件模块,支持广义复数的原型。

英文摘要:

In problems of mathematical physics, to study the structures of spaces using the Cayley-Klein models in theoretical calculations, the use of generalized complex numbers is required. In the case of computational experiments, such tasks require their high-quality implementation in a programming language. The proposed small implementation of generalized complex numbers in modern programming languages have several disadvantages. In this article, we propose using the Julia language as the language for implementing generalized complex numbers, not least because it supports the multiple dispatch mechanism. The paper demonstrates the approach to the implementation of one of the types of generalized complex numbers, namely dual numbers. We place particular emphasis on the description of the use of the multiple dispatch mechanism to implement a new numerical type. The resulting implementation of dual numbers can be considered as a prototype for a complete software module for supporting generalized complex numbers.

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

↑