I want to draw gamma distribution with different shape and scale parameters. The following MWE displayed error. The error information is :

Here is MWE:
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\pgfmathdeclarefunction{gammaPDF}{2}{
\pgfmathparse{1/(#2^#1*gamma(#1))*x^(#1-1)*exp(-x/#2)}
}
\begin{tikzpicture}
\begin{axis}[
width=4cm,
height=3cm,
axis x line=bottom,
axis y line=left
]
\addplot[
blue!50!white,
mark=none,
domain=0:20,
samples=100,
smooth] {\gammaPDF(9,0.5)};
\end{axis}
\end{tikzpicture}

gnuplotbackend. The gamma function isn't defined in the PGF math parser. – Jake Jun 21 '13 at 20:21