Julia语言中双曲复数的实现
Implementation of hyperbolic complex numbers in Julia language
摘要:
背景:双曲复数用于描述双曲空间。这种空间的一个著名例子是闵可夫斯基空间,它在狭义相对论和电动力学的问题中起着主导作用。然而,这样的数字在不同的程序设计语言中并不常见。目的:感兴趣的是在科学程序设计语言中实现双曲复形,特别是在Julia语言中。方法:Julia语言基于多分派的概念。这个概念是面向对象程序设计语言的多态性概念的扩展。为了实现双曲复数,使用Julia语言的多重分派方法。结果:结果是一个实现双曲数的库。结论:根据研究结果,我们可以得出结论,科学程序设计语言中的多重分派概念是方便和自然的。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。