-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use quaternion / versor algebra #700
Comments
There is no support for quaternions in libqalculate. |
@hanna-kn, is it planned to be added? |
I've not considered it before. It seems as if it should be relatively easy to add support for quaternions in specific functions, with 4-dimensional vectors as arguments. E.g. Adding quaternion as a separate data class, or as an extension to complex numbers, with support for regular operators and functions, would likely be considerably more complicated and require extensive changes to existing code. |
It is up to you, then, how and whether to implement it at all. Of course if quaternions are implemented at all, there should be functions for all arithmetic operations and other things commonly done with them, not just multiplication. Also quaternion multiplication is not commutative, so perhaps notation like |
I wanted to multiply two quaternions, however qalc seem to produce this kind of output:
So either I am using wrong syntax or quaternions are not implemented. If they are not implemented, then they probably should be in some way. Search in issues and manual index by keywords
versor
andquaternion
produced no results.The text was updated successfully, but these errors were encountered: