summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-19 00:14:41 +0000
committerKarl Berry <karl@freefriends.org>2009-11-19 00:14:41 +0000
commit4d009ca7c9f1312489e10e6956242106b57d57bc (patch)
tree9c096d917ee536ce8365a79b532b34f3cd0c0a59 /Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex
parent8968ecaf8fa9c4e06cdc046034b4ffd9569df83f (diff)
pstricks-add update
git-svn-id: svn://tug.org/texlive/trunk@16068 c570f23f-e606-0410-a88d-b1316a301751
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.tex29
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