I need a non-singular way to evaluate $x\ln(\sin(x))$ as $x \to 0$. The limit is zero,but numerically I'm getting NaNs.
How can I find a rapidly computable approximation to $x\ln(\sin(x))$ as $x\to 0$? It appears from the graph that $-C\sqrt{x}$ might be a reasonable approximation, but I'm looking for something more formal.
The behaviour as $x\to 0+$ is $$ x\log (\sin x) = x\log x - \frac{1}{6}x^3 + \mathcal{O}(x^5 ). $$ You can derive this by considering $$ \log \left( {\frac{{\sin x}}{x}} \right). $$ This function is analytic near $x=0$, so it can be approximated by power series.