[pstricks] performing calculations by avoiding fpeval
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Tue Sep 7 10:56:46 CEST 2010
Am 07.09.2010 00:44, schrieb mathias legrand:
> If yes, how may it be generalized to real numbers?
\documentclass{article}
\usepackage{pstricks,multido}
\begin{document}
\multido{\rA=0.00+1.11}{22}{%
\multido{\rB=0.00+2.22}{30}{%
\pstFPadd{\Add}{\rA}{\rB}%
\pstFPmul{\Mul}{\rA}{\rB}%
\pstFPstripZeros{\Add}{\psAdd}
\pstFPstripZeros{\Mul}{\psMul}
\psAdd \qquad \psMul\\
}%
}%
\end{document}
Herbert
More information about the PSTricks
mailing list