This is an implementation of quaternions based upon the Cayley-Dickson construction. It make use of recursion and inheritance of data classes. A base type called 'komplex' is defined that acts like MatLab's complex type but is inheritable. It is used to define the other data types recursively. The three normed division algebras, 'komplex', 'quaternion', and 'octonion', are supported in this way. I tossed in the sedenions, too, but of course they are not nicely-normed. The package includes the standard trig functions, log, exp, rotations, and handles symbolic expressions. If you install the package in your 'my_classes' subdirectory and use the pathtool to point to it, the package will be available to you if you get a hankering to perform any quaternion or octonion arithmetic. Also included is a test directory with a script called 'test_driver2' which tests the whole package and spews lots of examples of how to use the functions.
Zitieren als
Bill Davidson (2024). Quaternion data class (https://www.mathworks.com/matlabcentral/fileexchange/9811-quaternion-data-class), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Language Fundamentals > Data Types >
- Mathematics and Optimization > Symbolic Math Toolbox > Mathematics > Linear Algebra >
- Aerospace and Defense > Aerospace Toolbox > Standard Workflow Procedures > Coordinate Systems > Quaternion Math >
Tags
Quellenangaben
Inspiriert: Eular angles GUI
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
@komplex/
@komplex/private/
@octonion/
@octonion/private/
@quaternion/
@quaternion/private/
@sedenion/
@sedenion/private/
test_driver/
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |