diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex index cfe3e882030..07867645eb8 100644 --- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex +++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex @@ -1,4 +1,4 @@ -%% $Id: pstricks-add-doc.tex 122 2009-08-13 07:21:10Z herbert $ +%% $Id: pstricks-add-doc.tex 149 2009-11-14 09:11:05Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} \listfiles @@ -336,33 +336,44 @@ throughout, e.g. \verb+\let\modulo\pst@mod+. \end{LTXexample} %-------------------------------------------------------------------------------------- -\subsection{\nxLcs{pstFPDiv}} +\subsection{\nxLcs{pstFPMul} and \nxLcs{pstFPDiv}} %-------------------------------------------------------------------------------------- +Integer multiplication and division: + \begin{BDef} +\Lcs{pstFPMul}\Largb{result as a truncated integer}\Largb{number}\Largb{number}\\ \Lcs{pstFPDiv}\Largb{result as a truncated integer}\Largb{number}\Largb{number} \end{BDef} \begin{LTXexample}[width=2cm] \makeatletter +\pstFPMul\Result{-3.405}{0.02345} \Result\quad \pstFPDiv\Result{-3.405}{0.02345} \Result\\ +\pstFPMul\Result{0.02345}{-3.405} \Result\quad \pstFPDiv\Result{0.02345}{-3.405} \Result\\ +\pstFPMul\Result{234.123}{33} \Result\quad \pstFPDiv\Result{234.123}{33} \Result \makeatother \end{LTXexample} %-------------------------------------------------------------------------------------- -\subsection{\nxLcs{psGetSlope}} +\subsection{\nxLcs{psGetSlope} and \nxLcs{psGetDistance}} %-------------------------------------------------------------------------------------- \begin{BDef} -\Lcs{psGetSlope}\Largr{\Coord1}\Largr{\Coord2}\Lcs{\Larga{macro}} +\Lcs{psGetSlope}\Largr{\Coord1}\Largr{\Coord2}\Lcs{\Larga{macro}}\\ +\Lcs{psGetDistance}\Largr{\Coord1}\Largr{\Coord2}\Lcs{\Larga{macro}} \end{BDef} -\begin{LTXexample}[width=2cm] -\psGetSlope(-2,1)(3,1)\SlopeVal \SlopeVal\\ -\psGetSlope(-2,1)(-3,-1)\SlopeVal \SlopeVal\\ -\psGetSlope(-2,0)(3,-1)\SlopeVal \SlopeVal\\ -\psGetSlope(-2111,-12)(3,1)\SlopeVal \SlopeVal +\begin{LTXexample}[width=4cm] +\psGetSlope(-2,1)(3,1)\SlopeVal \SlopeVal \quad +\psGetDistance(-2,1)(3,1)\DVal \DVal\\ +\psGetSlope(-2,1)(-3,-1)\SlopeVal \SlopeVal\quad +\psGetDistance(-2,1)(-3,-1)\DVal \DVal\\ +\psGetSlope(-2,0)(3,-1)\SlopeVal \SlopeVal\quad +\psGetDistance(-2,0)(3,-1)\DVal \DVal\\ +\psGetSlope(-2111,-12)(3,1)\SlopeVal \SlopeVal\quad +%\psGetDistance(-2111,-12)(3,1)\DVal ==> Overflow! \end{LTXexample} \clearpage |