Virtually all elementary functions can be extended almost to the entire set of complex numbers. And indeed, $\ln(-1) = \ii\pi$ and $\sin(\ii) = \ii \sinh(1)$. There is not enough time to study the calculus of complex numbers in BIE-ZMA. However, we will at least mention how to define $e^z$ for any complex number $z$.
Mathematica, for example, works implicitly in „complex mode“. This may be very confusing for an uneducated user.
If you are curious you can easily verify that this answer is not wrong:
The „problem“ is that in complex numbers there are in total three solutions to the equation
The one solution that we got is what we call principal solution – the solution with the least „argument“. We repeat again the calculus of complex numbers is not part of the BIE-ZMA course.
In CAS Mathematica there are several symbols for equality with the following meaning:
Symbol ==
denotes logical equality (comparison, writing equations).
Symbol =
denotes assignment.
Symbol :=
denotes „delayed evaluation“.
We will demonstrate the various meanings using the example below. The output of this piece of code
a = 4;
b = a;
Print[b]
a = 2;
Print[b]
is
4
4
On the other hand, the cell containing
a = 4;
b := a;
Print[b]
a = 2;
Print[b]
results in the output
4
2