[Tex/LaTex] Package tikz Error: Giving up on this path. Did you forget a semicolon?. \end{axis}

pgfplotstikz-pgf

                \begin{tikzpicture}
                    \begin{axis}[%
                        axis equal,
                        width=8in,
                        height=8in,
                        axis lines = center,
                        xlabel = {$x$},
                        ylabel = {$y$},
                        zlabel = {$z$},
                        xmax=5,
                        ymax=5,
                        zmax=6,
                        ticks=none,
                        enlargelimits=0.3,
                        view={135}{45},
                        scale uniformly strategy=units only,
                    ]
                        \addplot3[%
                            opacity = 0.5,
                            surf,
                            z buffer = sort,
                            samples = 21,
                            variable = \u,
                            variable y = \v,
                            domain = 0:5,
                            y domain = 0:360,
                        ]
                            (u*cos v,u*sin v,sqrt(25-u*u) );
                    \end{axis}
                \end{tikzpicture}

Best Answer

Your squareroot parenthesis terminate the command prematurely. You need to hide it via braces

(u*cos v,u*sin v,{sqrt(25-u*u)} );