代码:
\begin{tikzpicture}[semithick]
\draw[->](-3.01,0)--(3,0)node[below]{$x$};
\draw[->](0,-3.01)--(0,3)node[right]{$y$};
\foreach \i in{-3.0,-2.5,-2.0,-1.5,-1.0,-0.5,0.5,1.0,1.5,2.0,2.5}{\draw(\i,0)--(\i,0.07);\draw(0,\i)--(0.07,\i);}
\draw[scale=0.5]plot[smooth,domain=0.18:5.5](\x,{1/\x});
\node[right,scale=0.7]at(0.18,2.78){$\alpha<0$};
\draw[scale=0.5]plot[smooth,domain=0:5](\x,{sqrt(\x)})node[right]{$0<\alpha<1$};
\end{tikzpicture}
如图:
总觉得下面的曲线不够光滑,怎么解决?