README

NAME

Math::Quaternion - Hyper-complex numbers as objects with operators

SYNOPSIS

use Math::Quaternion;

DESCRIPTION

This distribution implements an OO class for Quaternions, which are the simplest of the hyper-complex numbers. It adds the operators needed for basic math on the Qs, and should be a good base class for future modules to support the other hyper-complex numbers.

RECOMMENDATIONS

I intend this module to be a high-quality example of Raku numeric OO, usable as a reference for future module authors.

WARNINGS

This module is a mostly-from-scratch re-implementation of Quaternions; its API differs from the excellent Perl Math::Quaternion module.

GLOSSARY

ACKNOWLEDGEMENTS

Thanks to:

  • Jonathan Chin for the original Perl Math::Quaternion module.

  • Solomon "colomon" Foster for encouraging this module's release.

  • Will "Coke" Coleda for fixes to match changes in Rakudo.

  • RosettaCode for the challenge that provoked the initial code.

SEE ALSO

AUTHOR

Bruce Gray

COPYRIGHT AND LICENSE

Copyright 2010 - 2017 Bruce Gray

Copyright 2024 Raku Community

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Math::Quaternion v0.2.1

Hyper-complex numbers as objects with operators

Authors

    License

    Artistic-2.0

    Dependencies

    Test Dependencies

    Provides

    • Math::Quaternion

    The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.