summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--Master/texmf-dist/dvips/pst-math/pst-math.pro10
-rw-r--r--Master/texmf-dist/tex/generic/pst-math/pst-math.tex4
-rw-r--r--Master/texmf-dist/tex/latex/pst-math/pst-math.sty2
6 files changed, 59 insertions, 26 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.
diff --git a/Master/texmf-dist/dvips/pst-math/pst-math.pro b/Master/texmf-dist/dvips/pst-math/pst-math.pro
index a99b6ed5d26..e2570773379 100644
--- a/Master/texmf-dist/dvips/pst-math/pst-math.pro
+++ b/Master/texmf-dist/dvips/pst-math/pst-math.pro
@@ -1,12 +1,11 @@
-%!
% -*- Mode: Postscript -*-
% pst-math.pro --- PostScript header file pst-math.pro
%
% Author : Christophe JORSSEN
% Author : Herbert Voß <hvoss@tug.org>
% Created the : Sat 20 March 2004
-% Last Mod : $Date: 2009/05/11 $
-% Version : 0.4 $
+% Last Mod : $Date: 2009/08/27 $
+% Version : 0.5 $
%
/PI 3.14159265359 def
/ENeperian 2.71828182846 def
@@ -33,8 +32,9 @@
/ASINH {dup dup mul 1 add sqrt add ln} bind def
/ATANH {dup 1 add exch neg 1 add Div ln 2 div} bind def
%
-/SINC {dup SIN exch Div} bind def
-%
+%/SINC {dup SIN exch Div} bind def
+/SINC { dup 0 eq { pop 1 } { dup SIN exch div } ifelse } bind def
+
/GAUSS {dup mul 2 mul dup 4 -2 roll sub dup mul exch div neg EXP exch PI mul sqrt div} bind def
%
/GAMMA { 2 dict begin % hv 2007-08-30
diff --git a/Master/texmf-dist/tex/generic/pst-math/pst-math.tex b/Master/texmf-dist/tex/generic/pst-math/pst-math.tex
index ea0e35fbbd9..adaa5fec974 100644
--- a/Master/texmf-dist/tex/generic/pst-math/pst-math.tex
+++ b/Master/texmf-dist/tex/generic/pst-math/pst-math.tex
@@ -16,7 +16,7 @@
%% `pst-math' is a PSTricks package to enhance math in PSTricks
%%
%%
-\def\fileversion{0.21}
+\def\fileversion{0.23}
\message{`pst-math' v\fileversion\space, (CJ,hv)}
@@ -29,6 +29,6 @@
\pstheader{pst-math.pro}
%
-\def\pstPI#1{\ifcase#1\or3.141593\or1.570796\or1.047198\fi}
+\def\pstPI#1{\ifcase#1\or3.141593\or1.570796\or1.047198\or0.785398\fi}
%
\endinput
diff --git a/Master/texmf-dist/tex/latex/pst-math/pst-math.sty b/Master/texmf-dist/tex/latex/pst-math/pst-math.sty
index 38f32e640b6..8da9f0018b8 100644
--- a/Master/texmf-dist/tex/latex/pst-math/pst-math.sty
+++ b/Master/texmf-dist/tex/latex/pst-math/pst-math.sty
@@ -4,6 +4,6 @@
[\filedate\space v\fileversion\space `PST-math' (hv)]
\IfFileExists{pst-math.pro}{%
\ProvidesFile{pst-math.pro}
- [2009/05/11 v. 0.4, PostScript prologue file (hv)]
+ [2009/08/27 v. 0.5, PostScript prologue file (hv)]
\@addtofilelist{pst-math.pro}}{}%
\endinput