Code covered by the BSD License  

Highlights from
Quaternion data class

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 48.55 KB File ID: #9811

Quaternion data class

by Bill Davidson

 

29 Jan 2006 (Updated 31 Jan 2006)

A Quaternion data class

| Watch this File

File Information
Description

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.

Acknowledgements
This submission has inspired the following:
Eular angles GUI
MATLAB release MATLAB 7 (R14)
Other requirements none
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
linear algebra Bill Davidson 22 Oct 2008 08:13:58
quaternions Bill Davidson 22 Oct 2008 08:13:58
octonions Bill Davidson 22 Oct 2008 08:13:58
sedenions Bill Davidson 22 Oct 2008 08:13:58
mathematics Bill Davidson 22 Oct 2008 08:13:58

Contact us at files@mathworks.com