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

sqrt( DualQuaterion ) error #9

Closed
Jeffrey-Sarnoff opened this issue Mar 28, 2016 · 1 comment
Closed

sqrt( DualQuaterion ) error #9

Jeffrey-Sarnoff opened this issue Mar 28, 2016 · 1 comment

Comments

@Jeffrey-Sarnoff
Copy link

v0.5-dev

julia> adualquat = DualQuaternion( Quaternion(1,3,5,7), Quaternion(8,6,4,2) )
1 + 3im + 5jm + 7km + ( 8 + 6im + 4jm + 2km )du

julia> sqrt(adualquat)
ERROR: type Dual has no field re
in /(::DualQuaternion{Int64}, ::Dual{Float64}) at ./none:1
in normalizea(::DualQuaternion{Int64}) at ./none:7
in log(::DualQuaternion{Int64}) at ./none:2
in sqrt(::DualQuaternion{Int64}) at ./none:2
in eval(::Module, ::Any) at ./boot.jl:243

@hyrodium
Copy link
Collaborator

This issue was already solved in the latest release v0.5.6.

julia> a = DualQuaternion( Quaternion(1,3,5,7), Quaternion(8,6,4,2) )
DualQuaternion{Int64}(Quaternion{Int64}(1, 3, 5, 7, false), Quaternion{Int64}(8, 6, 4, 2, false), false)

julia> sqrt(a)
DualQuaternionF64(QuaternionF64(0.3303164318013798, 0.990949295404142, 1.6515821590069033, 2.3122150226096645, false), QuaternionF64(1.3212657272055226, 3.9637971816165702, -5.285062908822095, 3.3031643180138093, false), false)

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