summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic')
-rw-r--r--Master/texmf-dist/doc/generic/pst-math/Changes2
-rw-r--r--Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdfbin197429 -> 200233 bytes
-rw-r--r--Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex67
3 files changed, 51 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-math/Changes b/Master/texmf-dist/doc/generic/pst-math/Changes
index 9848d512b23..93d7aa9ccd8 100644
--- a/Master/texmf-dist/doc/generic/pst-math/Changes
+++ b/Master/texmf-dist/doc/generic/pst-math/Changes
@@ -1,4 +1,5 @@
..... pst-math.pro
+0.5 2009-08-27 modified SINC function (Patrice Megret)
0.4 2009-05-11 added SystemEqnSolver
0.3 2009-01-20 added SIMPSON for numeric integration (dr/hv)
0.2 2007-08-30 added GAMMA function (hv)
@@ -9,3 +10,4 @@
..... pst-math.tex
+0.23 2009-08-27 define \pstPi# on TeX level
diff --git a/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdf b/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdf
index 5b2e55f12b8..ed0ec9d7c3a 100644
--- a/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdf
+++ b/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex b/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex
index bc3698732c9..0379372b272 100644
--- a/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex
+++ b/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex
@@ -5,7 +5,6 @@
\usepackage{pst-math}
\let\pstMathFV\fileversion
\usepackage{pstricks-add}
-\usepackage[baw,pstricks]{fvrb-ex}
\lstset{pos=t,wide=true,language=PSTricks,
morekeywords={psGammaDist,psChiIIDist,psTDist,psFDist,psBetaDist,psPlotImpl},basicstyle=\footnotesize\ttfamily}
%
@@ -25,7 +24,7 @@ x&\mapsto&{\operator@font#1}(x)\end{array}\right.}
\title{\texttt{pst-math}}
\subtitle{Special mathematical PostScript functions; v.\pstMathFV}
\author{Christoph Jorssen\\Herbert Vo\ss}
-\docauthor{Christoph Jorssen\\Herbert Vo\ss}
+\docauthor{Herbert Vo\ss}
\date{\today}
\maketitle
@@ -35,23 +34,40 @@ x&\mapsto&{\operator@font#1}(x)\end{array}\right.}
\begin{abstract}
\noindent
-\LPack{pst-math} is an extension to the PostScript language. The files \LFile{pst-math.sty}
+\LPack{pst-math} is an extension to the \Index{PostScript} language. The files \LFile{pst-math.sty}
and \LFile{pst-math.tex} are only wrapper files for the \LFile{pst-math.pro} file, which
-defines all the new mathgematical functions for use with PostScript.
+defines all the new mathematical functions for use with PostScript.
\vfill\noindent
Thanks to: \\
-Jacques L'helgoualc'h; Dominik Rodriguez
+Denis Bitouzé;
+Jacques L'helgoualc'h;
+Patrice M\'egret;
+Dominik Rodriguez
\end{abstract}
+\section{Introduction}
+\nxLPack{pst-math} defines \Lcs{pstPi} on \TeX\ level which expects 1,2,3 or 4 as
+parameter. It is not available on PostScript level.
+
+\begin{BDef}
+\Lcs{pstPI}\Larg\#
+\end{BDef}
+
+\Lcs{pstPI}1 $\Rightarrow$ $\pi$\\
+\Lcs{pstPI}2 $\Rightarrow$ $\dfrac{\pi}{2}$\\[2pt]
+\Lcs{pstPI}3 $\Rightarrow$ $\dfrac{\pi}{3}$\\[2pt]
+\Lcs{pstPI}4 $\Rightarrow$ $\dfrac{\pi}{4}$
+
+
\section{Trigonometry}
-\LPack{pst-math} introduces natural trigonometric postscript operators COS, SIN and TAN defined by
+\LPack{pst-math} introduces natural trigonometric PostScript operators \Lps{COS}, \Lps{SIN} and \Lps{TAN} defined by
\[\DefOfOperator{cos}{\mathbb R}{[-1,1]}\]
\[\DefOfOperator{sin}{\mathbb R}{[-1,1]}\]
-\[\DefOfOperator{tan}{\mathbb R\backslash\{k\frac{\pi}2,k\in\mathbb Z\}}{\mathbb R}\]
-where $x$ is in \emph{radians}. TAN does \emph{not} produce PS error\footnote{TAN is defined with
-Div PSTricks operator rather than with div PS operator.} when $x=k\frac{pi}{2}$.
+\[\DefOfOperator{tan}{\mathbb R\backslash\{k\dfrac{\pi}2,k\in\mathbb Z\}}{\mathbb R}\]
+where $x$ is in \emph{radians}. \Lps{TAN} does \emph{not} produce a PS error\footnote{\nxLps{TAN} is defined with
+Div, a special PSTricks operator rather than with div, the default PS operator.} when $x=k\dfrac{\pi}{2}$.
\begin{center}
\begin{tabular}{@{} >{\sffamily}l l >{\sffamily}l l @{} }
@@ -62,7 +78,7 @@ num & \Lps{TAN} & real & Return \Index{tangent} of \textsf{num} radians\\\hline
\end{tabular}
\end{center}
-\begin{LTXexample}[pos=t,wide=false]
+%\begin{LTXexample}[pos=t,wide=false]
\begin{pspicture}*(-5,-2)(5,2)
\SpecialCoor % For label positionning
\psaxes[labels=y,Dx=\pstPI2]{->}(0,0)(-5,-2)(5,2)
@@ -73,14 +89,29 @@ num & \Lps{TAN} & real & Return \Index{tangent} of \textsf{num} radians\\\hline
\psplot[linewidth=1.5pt,linecolor=red]{-5}{5}{x SIN}
\psplot[linewidth=1.5pt,linecolor=green]{-5}{5}{x TAN}
\end{pspicture}
-\end{LTXexample}
+%\end{LTXexample}
+
+
+\begin{lstlisting}
+\begin{pspicture}*(-5,-2)(5,2)
+\SpecialCoor % For label positionning
+\psaxes[labels=y,Dx=\pstPI2]{->}(0,0)(-5,-2)(5,2)
+\uput[-90](!PI 0){$\pi$} \uput[-90](!PI neg 0){$-\pi$}
+\uput[-90](!PI 2 div 0){$\frac{\pi}2$}
+\uput[-90](!PI 2 div neg 0){$-\frac{\pi}2$}
+\psplot[linewidth=1.5pt,linecolor=blue]{-5}{5}{x COS}
+\psplot[linewidth=1.5pt,linecolor=red]{-5}{5}{x SIN}
+\psplot[linewidth=1.5pt,linecolor=green]{-5}{5}{x TAN}
+\end{pspicture}
+\end{lstlisting}
+
\LPack{pst-math} introduces natural trigonometric postscript
operators \Lps{ACOS}, \Lps{ASIN} and \Lps{ATAN} defined by
\[\DefOfOperator{acos}{[-1,1]}{[0,\pi]}\]
-\[\DefOfOperator{asin}{[-1,1]}{[-\frac{\pi}2,\frac{\pi}2]}\]
-\[\DefOfOperator{atan}{\mathbb R}{]-\frac{\pi}2,\frac{\pi}2[}\]
+\[\DefOfOperator{asin}{[-1,1]}{[-\dfrac{\pi}2,\dfrac{\pi}2]}\]
+\[\DefOfOperator{atan}{\mathbb R}{]-\dfrac{\pi}2,\dfrac{\pi}2[}\]
\begin{center}
\begin{tabular}{@{} >{\sffamily}l l >{\sffamily}l l @{} }
@@ -93,7 +124,7 @@ num & \Lps{ATAN} & angle & Return \Index{arctangent} of \textsf{num} in radians
\medskip\noindent
\begin{tabularx}{\linewidth}{!{\vrule width3pt}X}
-\Lps{ATAN} is \emph{not} defined as PS operator \Lps{atan}. \Lps{ATAN} needs only \emph{one}
+\Lps{ATAN} is \emph{not} defined as the already existing PS operator \Lps{atan}. \Lps{ATAN} needs only \emph{one}
argument on the stack.
\end{tabularx}
@@ -135,7 +166,7 @@ num & \Lps{TANH} & real & Return \Index{hyperbolic tangent} of \textsf{num}\\\h
\end{pspicture}
\end{LTXexample}
-\LPack{pst-math} introduces reciprocal hyperbolic trigonometric postscript operators \Lps{ACOSH}, \Lps{ASINH} and
+\LPack{pst-math} introduces reciprocal \Index{hyperbolic} trigonometric postscript operators \Lps{ACOSH}, \Lps{ASINH} and
\Lps{ATANH} defined by
\[\DefOfOperator{acosh}{[1,+\infty[}{\mathbb R}\]
\[\DefOfOperator{asinh}{\mathbb R}{\mathbb R}\]
@@ -161,7 +192,7 @@ num & \Lps{ATANH} & real & Return \Index{reciprocal hyperbolic tangent} of \text
\section{Other operators}
-\LPack{pst-math} introduces postscript operator EXP defined by
+\LPack{pst-math} introduces postscript operator \Lps{EXP} defined by
\[\DefOfOperator{exp}{\mathbb R}{\mathbb R}\]
\begin{center}
@@ -270,8 +301,8 @@ num num /var $\lbrace$ function $\rbrace$ num & \Lps{SIMPSON} & real & Return $\
%a b var f Ierr
-the first two variables are the low and high boundary integral, both can be values or
-\PS\ expressions. \verb+/var+ is the definition of the integrated variable (not x!), which is
+the first two variables are the low and high boundary \Index{integral}, both can be values or
+\PS expressions. \verb+/var+ is the definition of the integrated variable (not x!), which is
used in the following function description, which must be inside of braces. The last
number is the tolerance for the step adjustment. The function \Lps{SIMPSON} can be
nested.