Skip to content
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

Conform Quaternion to ElementaryFunctions (exp-like functions) #206

Merged
merged 19 commits into from
Apr 6, 2022

Conversation

markuswntr
Copy link
Contributor

@markuswntr markuswntr commented Oct 12, 2021

A first stab at elementary functions for quaternions(*).

It provides all exp-like functions; where "branch cuts" are not an issue, i.e:
exp, expMinusOne, cosh, sinh, tanh, cos, sin and tan

Additionally, I rearranged some of the (internal) helper functions that are dealing with the imaginary components of the quaternions and moved them into a separate file. These have previously been used exclusively for transformations but are now used throughout the elementary functions and for testing.

Much like the initial implementation of quaternions, this is an adaptation of the great work that has already been done on the elementary functions of complex numbers.

(*) I realized this PR gets quite big if all the elementary functions are part of one PR, especially since the log-like functions may benefit from changes outside the quaternion module – and so I removed them and the pow-like functions.

@markuswntr markuswntr marked this pull request as ready for review October 21, 2021 07:29
@markuswntr markuswntr changed the title Conform Quaternion to ElementaryFunctions Conform Quaternion to ElementaryFunctions (exp-like functions) Oct 21, 2021
@stephentyrone stephentyrone merged commit 3aaab70 into apple:Quaternions Apr 6, 2022
@markuswntr markuswntr deleted the quaternion/elfns branch April 26, 2022 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants