Skip to content

Commit

Permalink
Correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
moble committed Jan 3, 2025
1 parent 75e8a1d commit e06e1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function Base.exp(q::Quaternion{T}) where {T}
e = exp(q[1])
if iszero(a)
# Take this a little seriously, to obtain accurate ForwardDiff derivative
Quaternion{typeof(e)}(e*(1 - a/2 + a^2/24), e*v⃗[2], e*v⃗[3], e*v⃗[4])
Quaternion{typeof(e)}(e*(1 - a/2 + a^2/24), e*q[2], e*q[3], e*q[4])
else
esinc = e * _sincu(a)
Quaternion{typeof(esinc)}(e*cos(a), esinc*q[2], esinc*q[3], esinc*q[4])
Expand Down

0 comments on commit e06e1b2

Please sign in to comment.