# [pstricks] Two fail --- Backward solution?

David Arnold dwarnold45 at suddenlink.net
Fri Feb 6 21:08:48 CET 2009

No, your picture is not correct. Although the following picture is
also incorrect, I will use it to explain.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 13384 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20090206/cde7877b/attachment-0001.tiff
-------------- next part --------------

There are two trajectories missing from the above image. The relevant
code lines are:

\psplotDiffEqn[linecolor=black,method=varrkiv,varsteptol=0.0001]{-2}
{2}{-1.0051}{\Funct}
\psplotDiffEqn[linecolor=black,method=varrkiv,varsteptol=0.0001]{-2}
{2}{1.0051}{\Funct}

These two code lines do not draw the trajectories, one of which
should be above the line y=1, the other below the line y=-1.

As both of these solutions "explode" to infinity, could it be a
clipping problem?

The full code is:

\documentclass{article}
\usepackage{amsmath}
\usepackage{pstricks-add}

\begin{document}

\def\Funct{dup 3 exp exch sub}
\psset{unit=2cm,arrowscale=2}
\begin{center}
\begin{pspicture}(-2,-2)(2,2)
\psaxes[labels=none,ticksize=0 0pt]{<->}(0,0)(-2,-2)(2,2)[$t$,0][$y$,0]
\psline[linecolor=blue,linewidth=1pt]{<->}(-2,-1)(2,-1)
\psline[linecolor=blue,linewidth=1pt]{<->}(-2,0)(2,0)
\psline[linecolor=blue,linewidth=1pt]{<->}(-2,1)(2,1)
\psplotDiffEqn[linecolor=black,method=varrkiv,varsteptol=0.0001]{-2}
{2}{-1.0051}{\Funct}
\psplotDiffEqn[linecolor=black,method=varrkiv,varsteptol=0.0001]{-2}
{2}{-0.9736}{\Funct}
\psplotDiffEqn[linecolor=black,method=varrkiv,varsteptol=0.0001]{-2}
{2}{0.9736}{\Funct}
\psplotDiffEqn[linecolor=black,method=varrkiv,varsteptol=0.0001]{-2}
{2}{1.0051}{\Funct}
\uput[l](-2,1){$y=1$}
\uput[l](-2,0){$y=0$}
\uput[l](-2,-1){$y=-1$}
\pscircle[fillstyle=solid,fillcolor=white,linecolor=blue](0,1){3pt}
\pscircle[fillstyle=solid,fillcolor=blue,linecolor=blue](0,0){3pt}
\pscircle[fillstyle=solid,fillcolor=white,linecolor=blue](0,-1){3pt}
\psset{arrowscale=1}
\psline[linecolor=red,linewidth=3pt]{->}(0,1.3)(0,1.7)
\psline[linecolor=red,linewidth=3pt]{<-}(0,0.3)(0,0.7)
\psline[linecolor=red,linewidth=3pt]{->}(0,-0.7)(0,-0.3)
\psline[linecolor=red,linewidth=3pt]{->}(0,-1.3)(0,-1.7)
\end{pspicture}
\end{center}

\end{document}

David.

On Feb 6, 2009, at 9:44 AM, Dominique RODRIGUEZ wrote:

Dear David,

Everything works well for me too, please look at my corresponding ps
file.
Is it what you want?

Could you put the macro \listfiles in the preamble and send me the
resulting
list to see the version of the various pstricks file.

For plotting a reverse time graph, it should work directly simply by
specifying:
{0}{-2} as argument, but I test it and it doesn't work ;-(

I have to look in the code.

Dominique
--
Les Galini?res - 07460 St Andr? de C. FRANCE-- tel: (+33)
475.39.05.82<equadif.ps>_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list