Let $f$ be defined as
$$f(x) = \frac{i}{2\pi} Log(-\exp(2i\pi x)) , \forall x \in \Bbb{R} $$
Prove $f(x)=0.45$ when $x=5.05$.
I know that $Log( a + i b) = ln(|a+ib|) + i Arg(a+ib)$ so
$$Log(-\exp(2i \pi x)) = iArg(-\exp(2i \pi x)) = 2i * arctan(\frac{ sin(2\pi x)}{cos(2\pi x) - 1 })$$
I get stuck on arctan. How to go through ?
If you consider for $x\in\mathbb{R}$ the expression $\mathrm{exp}(2\pi i x)$, then every time your $x$ is a multiple of an integer, you are in the same spot as for $x=0$ and then begin again (you are going in circles of radius 1 around the origin z = 0). So, $x=5.05$ gives you the same value as $x = 0.05$. Then, by using $-1 = \mathrm{exp}(-i\pi)$ and setting $x=0.05$ you get $$\dfrac{i}{2\pi}\log(-\mathrm{exp}(2\pi i 0.05))= -\dfrac{1}{2\pi}\mathrm{Arg}(\mathrm{exp}(2\pi i 0.05 - i\pi)) = -\dfrac{2 \pi }{2 \pi} 0.05 + \dfrac{\pi}{2\pi}=0.45.$$
Note that your function has multiple "branches", so when you try to find one value, you usually look for the value found in the "principal branch", which you achieve by evaluating your function in $x\mathrm{mod} 1$.