emmo-repo / EMMO

Elementary Multiperspective Material Ontology (EMMO)
Other
63 stars 15 forks source link

Added complex numbers #284

Closed jesper-friis closed 7 months ago

jesper-friis commented 7 months ago

Closes #270

Added custom datatypes following the Python representation: "4+5j". It would be preferable if we could find existing adopted datatypes.

The choice of "j" to denote imaginary numbers can be discussed. Chosen here to be aligned with Python. However, if we want to generalise to quatarnions, probably "i" would be a better choice, allowing them to be represented with ("i", "j", "k"), avoiding "l" which is difficult to distinguish from 1.

Open for comments