The first code:
\documentclass[pstricks]{standalone}
\usepackage{pst-plot}
\def\m{1/((x-1)^2)^(1/3)}
\begin{document}
\begin{pspicture}(-1,-1)(3.5,3.5)
\psaxes[labelFontSize=\scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
\psplot[ algebraic,
% plotstyle=curve,
plotpoints=1000, <<-- notice
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{\m}
\psline[linestyle=dashed](1,0)(1,3)
\end{pspicture}
\end{document}
The second code:
\documentclass[pstricks]{standalone}
\usepackage{pst-plot}
\def\m{1/((x-1)^2)^(1/3)}
\begin{document}
\begin{pspicture}(-1,-1)(3.5,3.5)
\psaxes[labelFontSize=\scriptstyle]{->}(0,0)(3,3)[$x$,-90][$y$,0]
\psplot[ algebraic,
plotstyle=curve,
%plotpoints=1000,
yMaxValue=3,
linewidth=1.5pt,
linecolor=red]{0}{3}{\m}
\psline[linestyle=dashed](1,0)(1,3)
\end{pspicture}
\end{document}
The result of compiling is frustrating.
- What is the difference between them?
- Can you fix the picture to make it become equal?