Not sure that I follow what you are trying to do.
The definition given above for the logarithm,
wz=ezlog(w), is standard. I suggest your working with this to understand some basics.
For example:
ii=eilog(i)=ei(ln(1)+i(2kπ+π/2)=e−(2kπ+π/2).
As you can see the imaginary part of that is 0.
The value of the expression for
k=0 is known as the principal value.
That corresponds to the Log, logarithm with a capital L.
So here is the principal value of what you posted.
\(\displaystyle \begin{array}{rcl}
\left( {a + bi} \right)^i & = & e^{iLog(a + ib)} \\
& = & e^{i\left( {\ln \left( {\sqrt {a^2 + b^2 } } \right) + iArg(a + bi)} \right)} \\
& = &e^{ - Arg(a + bi)} \left[ {cis(\left( {\ln \left( {\sqrt {a^2 + b^2 })} \right] \\
\end{array}\)
Now the imaginary part of the principal value is:
\(\displaystyle {{\ Im}\nolimits} \left( {\left( {a + bi} \right)^i } \right) = e^{ - Arg(a + bi)} \left[ {\sin (\left( {\ln \left( {\sqrt {a^2 + b^2 })} \right].\)
EDIT: correction.