Using the Quaternions package, one would expect Exp[Quaternion[1, 0, 0, 0]] to be e.
But Mathematica gives
In[3]:= Exp[Quaternion[1, 0, 0, 0]]
During evaluation of In[3]:= Power::infy: Infinite expression 1/0 encountered. >>
During evaluation of In[3]:= Power::infy: Infinite expression 1/0 encountered. >>
During evaluation of In[3]:= Power::infy: Infinite expression 1/0 encountered. >>
During evaluation of In[3]:= General::stop: Further output of Power::infy will be suppressed during this calculation. >>
During evaluation of In[3]:= $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >>
During evaluation of In[3]:= $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >>
During evaluation of In[3]:= $RecursionLimit::reclim: Recursion depth of 1024 exceeded. >>
During evaluation of In[3]:= General::stop: Further output of $RecursionLimit::reclim will be suppressed during this calculation. >>
During evaluation of In[3]:= $IterationLimit::itlim: Iteration limit of 4096 exceeded. >>
During evaluation of In[3]:= Infinity::indet: Indeterminate expression 0 ComplexInfinity encountered. >>
Out[3]= Indeterminate
Came across another issue with the Quaternions package. Taking the logarithm of a quaternion and then raising e to the log should return the original quaternion. But that is not always the case.
EDIT: This does not happen with all unnormalized quaternions. Only with those that has the norm of vector part > \pi.
Same behavior as for complex numbers, when absolute value of the imaginary part is > \pi:
Log@Exp[1. + 3. I]
1. + 3. I
Log@Exp[1. + 3.5 I]
1. - 2.78319 I
So this is not so odd after all. The reason is that the logarithm of quaternions is multivalued. As it is for complex numbers.