Well, if you accept $x^{1/25}$ as being defined for all real $x$ and giving a negative value when $x$ is negative, just take $$ f(x) = \left( \cos x \right)^{1/25} $$
Well, if you accept $x^{1/25}$ as being defined for all real $x$ and giving a negative value when $x$ is negative, just take $$ f(x) = \left( \cos x \right)^{1/25} $$