Skip to content

The left or right product of a Rotor{T} with a Vector of Rotor{T}(s) should be a vector of Rotor{T}(s) #73

@empet

Description

@empet
julia> vr=[Rotor(2.5, 1,-2, 3), exp(imx*pi/6)]
2-element Vector{RotorF64}:
 rotor(0.5555555555555556 + 0.2222222222222222𝐢 - 0.4444444444444444𝐣 + 0.6666666666666666𝐤)
                              rotor(0.8660254037844387 + 0.49999999999999994𝐢 + 0.0𝐣 + 0.0𝐤)

julia> exp(imz*pi/3)*vr
2-element Vector{QuaternionF64}:
 -0.29957249141184794 + 0.49601129057086163𝐢 - 0.029772132492347034𝐣 + 0.8144585576580216𝐤
                                0.43301270189221946 + 0.25𝐢 + 0.43301270189221924𝐣 + 0.75𝐤

julia> vr*exp(imz*pi/3)
2-element Vector{QuaternionF64}:
 -0.2995724914118479 - 0.27378906834863936𝐢 - 0.4146723119520975𝐣 + 0.8144585576580214𝐤
                             0.43301270189221946 + 0.25𝐢 - 0.43301270189221924𝐣 + 0.75𝐤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions