After using a new version (2.10) of PGF, certain parts of my old TikZ code stopped functioning properly. For instance, the plot for a power function:
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=6,domain=0:1]
\draw[domain=0.0000125:1] plot (\x,{(\x)^(0.5)-\x});
\end{tikzpicture}
\end{document}
I now get the "Dimension too large" error for this.
The problem has something to do with the power function: \draw[domain=0.0000125:1] plot (\x,{(\x)^(2)-\x});
would cause no problem at all under the new version. More specifically, the problem seems to lie in taking square roots.
I noticed the problem quite some time ago, but since I am able to revert back to an older version (2.00) of PGF under which the above piece of code causes no problem, I didn't bother to ask about it. Now, however, when other people run my code, they often get problems because they have newer versions of PGF.
My question is:
How can I rewrite the code such that the intended function gets plotted without any problem under the current version of PGF?