The code:
<< Quaternions`;
Exp[Quaternion[1, 0, 0, 0]]
produces an error:
During evaluation of In[81]:= Power::infy: Infinite expression 1/0 encountered. >>
During evaluation of In[81]:= Power::infy: Infinite expression 1/0 encountered. >>
During evaluation of In[81]:= Power::infy: Infinite expression 1/0 encountered. >>
During evaluation of In[81]:= General::stop: Further output of Power::infy will be suppressed during this calculation. >>
During evaluation of In[81]:= $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >>
During evaluation of In[81]:= $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >>
During evaluation of In[81]:= $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >>
During evaluation of In[81]:= General::stop: Further output of $RecursionLimit::reclim will be suppressed during this calculation. >>
During evaluation of In[81]:= $IterationLimit::itlim: Iteration limit of 4096 exceeded. >>
During evaluation of In[81]:= Infinity::indet: Indeterminate expression 0 ComplexInfinity encountered. >>
I expect it to output E
instead.
Quaternion exponent formula is
In[84]:= ScalarQ[x_] = True;
Exp[Quaternion[a, b, c, d]]
Out[85]= Quaternion[E^a Cos[Sqrt[b^2 + c^2 + d^2]], (
b E^a Sin[Sqrt[b^2 + c^2 + d^2]])/Sqrt[b^2 + c^2 + d^2], (
c E^a Sin[Sqrt[b^2 + c^2 + d^2]])/Sqrt[b^2 + c^2 + d^2], (
d E^a Sin[Sqrt[b^2 + c^2 + d^2]])/Sqrt[b^2 + c^2 + d^2]]
but quaternion cannot substitute directly in case AbsIJK[x] == 0
.
Is there a fix in Mathematica 10? Is there any reason for it to cause error?
Exp[Quaternion[1, 0, 0, 0]]
. I suspect something done during the transition to version 6 broke it. $\endgroup$