<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Myriad Pro">Dear list,<br>
<br>
in the following example is some \multido - code to calculate some
intersection points of circles.<br>
<br>
However when increasing the number of repeating the multido-loop, i get
a PS error.<br>
<br>
The following example works -- however when increasing the loop number
from 5 to 6 (or bigger), some PS errors come along.<br>
There are four intersection points missing in my example file -- for
sure i can calculate them by hand and insert them, but i am interested
in what is going wrong with my calculation&nbsp; code. Must be something
with negative expressions within the square root.<br>
<br>
Here the code:<br>
<br>
%%%%%%%%%%%%%%%%%%<br>
\documentclass{article}<br>
\usepackage{pstricks-add}<br>
\begin{document}<br>
\begin{center}<br>
\begin{pspicture*}(-1,-4)(4,4)<br>
\multido{\rA=1+0.5}{8}{<br>
\psarc[linewidth=0.5pt,linecolor=lightgray](0,1){\rA}{-90}{90}<br>
\psarc[linewidth=0.5pt,linecolor=lightgray](0,-1){\rA}{-90}{90}<br>
}<br>
\multido{\rA=1+0.5}{5}{<br>
\multido{\rB=1+0.5}{5}{<br>
%\pscircle*(!\rA\space 2 exp 1 sub sqrt 0){0.05}<br>
\pscircle*(!\rA\space 2 exp \rB\space 2 exp sub 4 add 4 div \rA\space
div 2 exp neg 1 add sqrt \rA\space mul&nbsp; \rA\space 2 exp \rB\space 2 exp
sub 4 add 4 div 1 sub){0.05}<br>
}}<br>
\psframe[fillstyle=solid,fillcolor=white,linecolor=white](-0.2,6)(0.5,-6)<br>
\pspolygon[fillstyle=solid,fillcolor=white,linecolor=white](3,6)(3,-6)(6,-6)(6,6)(3,6)<br>
\pspolygon[fillstyle=solid,fillcolor=white,linecolor=white](0,0)(0,-6)(3,-6)(3,-3)(0,0)<br>
\pspolygon[fillstyle=solid,fillcolor=white,linecolor=white](0,0)(0,6)(3,6)(3,3)(0,0)<br>
\psdot(0,1)<br>
\psdot(0,-1)<br>
\psline[linewidth=2pt](3,-3)(3,3)<br>
%\psgrid<br>
\end{pspicture*}<br>
\end{center}<br>
\end{document}<br>
%%%%%%%%%%%%%%%%%%%%%<br>
<br>
Any explanations and help appreciated.<br>
Anyone an idea?<br>
<br>
Thanks in advance.<br>
<br>
Regards,<br>
<br>
Juergen<br>
<br>
</font>
<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>

</pre>
</body>
</html>