summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex')
-rw-r--r--Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex27
1 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex b/Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex
index 7e0a5dc1b48..442bb426505 100644
--- a/Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex
+++ b/Master/texmf-dist/doc/latex/curve2e/curve2e-manual.tex
@@ -1337,14 +1337,14 @@ Remember to delete all these subfolders if you decide to install a complete upda
and
\cs{fpdowhile}\meta{test}\meta{operations to be repeated}
\end{flushleft}
- The name of |\fptest| requires two further arguments that contain
+ The macro |\fptest| requires two further arguments that contain
what to do if the \meta{test} is true, and what to do if the
\meta{test} is false.
The \meta{test} is a logical expressions that connects math relation
- expressions, even floating pint ones, by means of \emph{logical
+ expressions, even floating point ones, by means of \emph{logical
operators}; such operators are \verb+||+, \verb|&&|, and \verb|!|,
respectively for OR, AND, NOT; for example \verb|!<| means “not lower
- than” which is equivalent to “equal or grater than”. The logical
+ than”, which is equivalent to “equal or grater than”. The logical
expression is parsed left to right and normal parentheses may be
used to alter this sequence. The logical operators work also
between logical variables, therefore the \meta{test} may contain
@@ -1415,11 +1415,11 @@ y = f_2(t)
The syntax is the following:
\begin{flushleft}\obeylines
-\cs{Lissajous}\marg{t}\Oarg{\meta{$A_1$},\meta{$N_1$},\meta{$\phi_1$},\meta{$A_2$},\meta{$N_2$},\meta{$\phi_2$}}\meta{$P_{\mathrm{out}}$}
+\cs{Lissajous}\marg{in}\Oarg{\meta{$A_1$},\meta{$N_1$},\meta{$\phi_1$},\meta{$A_2$},\meta{$N_2$},\meta{$\phi_2$}}\meta{$P_{\mathrm{out}}$}
\end{flushleft}
where \meta{$P_{\mathrm{out}}$} is a macro that gets
defined with the cartesian coordinates of the computed output
- point.
+ point.Arguments \meta{in} (the $t$ parameter) and \meta{out} (the computed coordinates) need not be enclosed within braces if they are given as macros; actually the code shown in figure~\ref{fig:lissajous} shows such procedure that renders the input code simpler to read.
After this definition the diagram is plotted in
figure~\ref{fig:lissajous}.
@@ -1432,14 +1432,15 @@ y = f_2(t)
\VECTOR(-50,0)(50,0)\Pbox(50,0)[tr]{x}[0]
\VECTOR(0,-50)(0,50)\Pbox(0,50)[tr]{y}[0]
\Pbox(0,0)[tr]{O}[2]
-\countdef\I=2560 \I=0
%
-\Lissajous\I[40,2,90,40,3,0]\Pout
-{\moveto(\Pout)\relax
+{\countdef\I=2560 \I=0
\fpdowhile{\I !> 360}{%
-\Lissajous\I\Pout
-\lineto(\Pout)\advance\I by1\relax}%
-\strokepath}
+ \fptest{\I=0}%
+ {\Lissajous\I[40,2,90,40,3,0]\Pout
+ \moveto(\Pout)}%
+ {\Lissajous\I\Pout
+ \lineto(\Pout)}%
+ \advance\I by1}\strokepath}%
\end{picture}
\end{Esempio}
\caption{A Lissajous diagram}\label{fig:lissajous}
@@ -1448,10 +1449,10 @@ y = f_2(t)
For the independent variable $t$, the parameter of the Lissajous
parametric equations, it is better to work with degrees instead
of radians, and with integer numbers, so that the whole range
- from $0^\circ$ to $369^\circ$ is certainly spanned. Notice the
+ from $0^\circ$ to $360^\circ$ is certainly spanned. Notice the
braces that include the code for the Lissajous diagram; they may
be useful to render that group suitable to be |\put| somewhere
- else than with its center in the origin of the canvas axes,
+ else than with its center at the origin of the canvas axes,
and/or to be used as the second argument of a
\cs{rotatebox}\marg{angle} command so as to rotate the whole
diagram.