Background: Hyperbolic complex numbers are used in the description of hyperbolic spaces. One of the well-known examples of such spaces is the Minkowski space, which plays a leading role in the problems of the special theory of relativity and electrodynamics. However, such numbers are not very common in different programming languages. Purpose: Of interest is the implementation of hyperbolic complex in scientific programming languages, in particular, in the Julia language. Methods: The Julia language is based on the concept of multiple dispatch. This concept is an extension of the concept of polymorphism for object-oriented programming languages. To implement hyperbolic complex numbers, the multiple dispatching approach of the Julia language was used. Results: The result is a library that implements hyperbolic numbers. Conclusions: Based on the results of the study, we can conclude that the concept of multiple dispatching in scientific programming languages is convenient and natural.
翻译:超曲体复数用于描述双曲空间。这种空间的著名例子之一是Minkowski空间,它在相对论和电动力学特殊理论问题中起着主导作用。然而,这些数字在不同编程语言中并不十分常见。目的:令人感兴趣的是在科学编程语言中,特别是在Julia语言中采用超曲体复数。方法:Julia语言基于多发性的概念。这一概念是对象导向编程语言多发性概念的延伸。这个概念是对象导向编程语言多发性概念的延伸。为了实施双曲复杂数字,使用了Julia语言的多发性方法。结果:结果:结果:是一个使用双曲体数字的图书馆。结论:根据研究结果,我们可以得出结论,科学编程语言多发性概念既方便又自然。