You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return ``\\exp(u * q)``, where ``u`` is the normalized imaginary part of `q`.
160
-
161
-
Let ``q = s + a u``, where ``s`` is the real part, ``u`` is a pure unit quaternion,
162
-
and ``a \\ge 0`` is the magnitude of the imaginary part of ``q``.
163
-
164
-
!!! Note
165
-
This is the extension of `cis(z)` for complex `z` to the quaternions and is not
166
-
equivalent to `exp(im * q)`. As a result, `cis(Quaternion(z)) ≠ cis(z)` when
167
-
`imag(z) < 0`.
168
-
"""
169
-
cis(q::Quaternion)
170
-
171
-
ifVERSION≥v"1.6"
172
-
"""
173
-
cispi(q::Quaternion)
174
-
175
-
Compute `cis(π * q)` more accurately.
176
-
177
-
!!! Note
178
-
This is not equivalent to `exp(π*im*q)`. See [cis(::Quaternion)](@ref) for details.
179
-
"""
180
-
function Base.cispi(q::Quaternion)
181
-
Base.depwarn("`cispi(::Quaternion)` is deprecated and will be removed in the next breaking release. See https://github.com/JuliaGeometry/Quaternions.jl/pull/76 for more information.", :cispi)
182
-
extend_analytic(cispi, q)
183
-
end
184
-
end
185
-
186
-
function Base.cis(q::Quaternion)
187
-
Base.depwarn("`cis(::Quaternion)` is deprecated and will be removed in the next breaking release. See https://github.com/JuliaGeometry/Quaternions.jl/pull/76 for more information.", :cis)
0 commit comments