[pstricks] Vector fields

Hamed Al-Sulami hhaalsalmi at kau.edu.sa
Fri May 29 22:15:30 CEST 2009


Guys can somebody explain for me the code of the following 









      \pstVerb{/x \ia\space def

               /y \ib\space def

               y 0 eq

                 {/ValueTempA 0 def

                  /ValueTempB 0.5 def}

                 {/ValueTempZ 2 1 x x mul y y mul div add sqrt mul def

                  /ValueTempA 1 ValueTempZ div def

                  /ValueTempB x y ValueTempZ mul div def}


      \psline(! x ValueTempA sub y ValueTempB sub)

             (! x ValueTempA add y ValueTempB add)}}



Because when I tried to imitate the above code for the vector fields
function <2x,y>  I got something different.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20090529/a8c781a3/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20090529/a8c781a3/attachment.pl>

More information about the PSTricks mailing list