[pstricks] Question about mathematical expression with postscript.

Hendri Adriaens Hendri at uvt.nl
Fri Jun 3 17:05:03 CEST 2005


> 1/(x-1)^2
> 
> I thought I can express the equation as
> 
>         \psplot[plotstyle=curve,%
>         linecolor=blue]%
>         {1}{2.0}%
>         {1 1 x sub 2 exp div}
> 
> But, it does not work. :(

1/(x-1)^2 for x=1 is equal to...?

\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\psset{algebraic=true}
\begin{pspicture}(1,0)(10,6)
\psplot[plotstyle=curve,linecolor=blue]{1.4}{10}{1/(x-1)^2}
\end{pspicture}
\end{document}

-Hendri.




More information about the PSTricks mailing list