<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Myriad Pro">Dear Zbiginiew,<br>
<br>
please try that -- this works fine for me:<br>
<br>
\multido{\rx=-1.5+0.12}{26}{%<br>
\multido{\ry=0+0.06}{26}{%<br>
\pstThreeDLine[arrows=-&gt;]%<br>
(\rx,\ry,0)%<br>
(\rx\space ,\ry\space, \rx\space 2 exp \ry\space 2 exp add)<br>
}<br>
} <br>
<br>
Regards,<br>
<br>
Juergen<br>
</font><br>
Zbigniew Nitecki wrote:
<blockquote cite="mid:021C1C47-72F7-4249-A2B4-6877D1F185BF@tufts.edu"
 type="cite">I want to use multido to draw arrows from the xy-plane to
the graph of z=x^2&nbsp;+y^2 for a collection
  <div>of points in the rectangle [-1.5,1.5]\times[0,1.5]. &nbsp;The
following code</div>
  <div>*********************************************************************************<br>
  <div apple-content-edited="true"><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>\multido{\rx=-1.5+0.12}{26}{%</div>
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>\multido{\ry=0+0.06}{26}{%</div>
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>\pstThreeDLine[arrows=-&gt;]%</div>
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>(\rx,\ry,0)%</div>
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>(!\rx\space \ry\space \rx\space 2
exp \ry\space 2 exp add)</div>
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>}</div>
  <div style="margin: 0px;"><span class="Apple-tab-span"
 style="white-space: pre;"> </span>}</div>
  <div>*************************************************************************************</div>
  <div>produces no errors, but also produces no arrows. &nbsp;If I try to
define a function</div>
  <div>**************************************************************************************</div>
  <div>\newcommand{\hit}[2]{! #1\space 2 exp #2\space 2 exp add}<span
 class="Apple-tab-span" style="white-space: pre;"> </span></div>
  <div>****************************************************************************************</div>
  <div>and replace the last set of coordinates with</div>
  <div>*****************************************************</div>
  <div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>(\rx,
\ry, \hit{\rx}{\ry})</div>
  <div>*******************************************************</div>
  </div>
  <div>I get the error message</div>
  <div>********************************************************</div>
  <div>
  <div>Runaway definition?</div>
  <div>-&gt;/ArrowA { moveto } def /ArrowB { BeginArrow 1. &nbsp;1. &nbsp;scale
&nbsp;false 0.\ETC.</div>
  <div>! TeX capacity exceeded, sorry [main memory size=1500000].</div>
  <div>\pst@code ...sub x2 x1 sub Atan def ArrowA x1 Alph</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;a cos
arrowlength mul add ...</div>
  <div>l.52 <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
  <div>********************************************************</div>
  <div>(This I almost understand: &nbsp;I am trying to use a latex command
to define a postscript function---so how do I do that?)</div>
  <div>So just to test things I tried</div>
  <div>*******************************</div>
  <div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>\multido{\rx=-1.5+0.12}{26}{%</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>\multido{\ry=0+0.06}{26}{%</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>\pstThreeDLine[arrows=-&gt;]%</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>(\rx,\ry,0)%</div>
  <div>%<span class="Apple-tab-span" style="white-space: pre;"> </span>(!\rx\space
\ry\space \rx\space 2 exp \ry\space 2 exp add)</div>
  <div>%<span class="Apple-tab-span" style="white-space: pre;"> </span>(\rx,
\ry, \hit{\rx}{\ry})</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>(\rx,\ry,1)</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
  <div>******************************************</div>
  <div>and got no error, but still no arrows. &nbsp;Now I am really
confused. &nbsp;What have I screwed up now?</div>
  <div><br>
  </div>
  <div>My real question, though, is:</div>
  </div>
  <div>Is there a way to use mutlido with commands like \pstThreeDLine
in which certain coordinates depend in a non-trivial way on the multido
parameter?</div>
  </div>
  <p style="margin: 0px;"><br>
  </p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Zbigniew Nitecki</font></p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Department of Mathematics</font></p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Tufts University</font></p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Medford, MA 02155</font></p>
  <p
 style="margin: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; min-height: 14px;"><br>
  </p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">telephones:</font></p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Office<span class="Apple-converted-space"><span
 class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3843</font></p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Dept.<span class="Apple-converted-space"><span
 class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3234</font></p>
  <p style="margin: 0px;"><font
 style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Helvetica" size="3">Dept. fax<span class="Apple-converted-space"><span
 class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3966</font></p>
  <a moz-do-not-send="true" href="http://www.tufts.edu/%7Eznitecki/">http://www.tufts.edu/~znitecki/</a></span>
  </div>
  <br>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
PSTricks mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PSTricks@tug.org">PSTricks@tug.org</a>
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="65">-- 
 J&uuml;rgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    <a class="moz-txt-link-abbreviated" href="mailto:gilg@acrotex.net">gilg@acrotex.net</a>
 Websites  <a class="moz-txt-link-abbreviated" href="http://www.acrotex.net">www.acrotex.net</a>
           <a class="moz-txt-link-abbreviated" href="http://www.brueckenkurs-physik.de">www.brueckenkurs-physik.de</a>
           <a class="moz-txt-link-abbreviated" href="http://www.gilligan-online.de">www.gilligan-online.de</a>
</pre>
</body>
</html>