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

as.orthogonal function error #20

Closed
MamtaMohan opened this issue Apr 29, 2022 · 2 comments
Closed

as.orthogonal function error #20

MamtaMohan opened this issue Apr 29, 2022 · 2 comments

Comments

@MamtaMohan
Copy link

Hi,

I am using onion package to generate set orthogonal matrices from quaternions.

I tried to convert a quaternion to an equivalent orthogonal matrix.

It gave me an error: Error in Re(q1) : non-numeric argument to function

I tried following sequence:

q1 <- rquat(1)
q1
An object of class "quaternion"
Slot "x":
[,1]
Re -0.7134218
i -1.0694264
j -1.4381244
k -0.6852207

as.orthogonal(q1)
Error in Re(Q) : non-numeric argument to function

I tried example as mention in documentation as well. It also gave me an error.

as.orthogonal(rquat(q1))
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'z' in selecting a method for function 'Norm': error in evaluating the argument 'data' in selecting a method for function 'matrix': invalid arguments.

I would appreciate your response.

Mamta

@RobinHankin
Copy link
Owner

RobinHankin commented Apr 30, 2022 via email

@MamtaMohan
Copy link
Author

MamtaMohan commented May 2, 2022 via email

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

No branches or pull requests

2 participants