The hypercomplex number library
The code implements Hypercomplex numbers library by means of object programming.
The library is based on the Cayley-Dickson construction.
Description of individual methods:
Hypercomplex - a constructor. The input is double array with parts of the
hypercomplex number (parts must be real) or Hypercomplex
object (the constructor get the copy of the input in this
case). Example:
Hypercomplex([1 2 -5 10]) represents the quaternion
1+2i-5j+10k.
The input of following methods is one parameter only, the Hypercomplex
object variable.
disp - it displays parts of hypercomplex number
double - it converts the hypercomplex number to the double array
getDimension - it gets the dimension of the hypercomplex number
norm - it gets the norm of the hypercomplex number
conjugate - it gets the conjugation of the hypercomplex number
nextAlgebra - it transforms the hypercomplex number from the certain
Cayley-Dickson algebra to the upper one by filling zeros
to the end of the hypercomplex number
addZeros - it adds the select count of zeros to the end of the
hypercomplex number. The method has two parameters, the
Hypercomplex object and the count of added zeros.
Following operators are overloaded: +,- (also unary) and *. The result of the
operation is the Hypercomplex object.
Citation pour cette source
Martin V. (2026). The hypercomplex number library (https://fr.mathworks.com/matlabcentral/fileexchange/32559-the-hypercomplex-number-library), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Coordinate Systems > Quaternion Math >
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
