Why is this not working properly:
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin = 0,xmax= 1,ylabel = $C_A/C_A^*$,xlabel=$z$]
\foreach \x in {.01,.1,1,10}
\addplot[domain=0:1] {1/(1+exp(\x^.5))*(exp(\x^.5)*exp(\x^.5*-x)+exp(\x^.5*x))};
\end{axis}
\end{tikzpicture}
\end{document}
Produces:

While it should produce:

I have tried to increase the samples in the addplot options to no avail.
xand\xin the same equation which confuses it. change all instances of\xwith something like\myvarand it works – ArTourter Apr 14 '15 at 17:22-sign may change the order of calculation. Example:\x^2is not the same as `(\x)^2 when x is negative. Correct me if I am wrong, but that was my impression from playing with pgfplot. See this: http://tex.stackexchange.com/a/125896/37570 – ajeh Apr 14 '15 at 18:31