From edf047bb79fdc9021502961e102ef79d103c6a6e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 4 Nov 2007 19:10:57 +0000 Subject: pst-math update (1nov07) git-svn-id: svn://tug.org/texlive/trunk@5333 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-math/Changes | 5 ++ .../doc/generic/pst-math/pst-math-doc.pdf | Bin 147850 -> 155766 bytes .../doc/generic/pst-math/pst-math-doc.tex | 62 ++++++++++++++++++++- 3 files changed, 65 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/generic/pst-math/Changes b/Master/texmf-dist/doc/generic/pst-math/Changes index 00fa71e866c..0f3c21108b8 100644 --- a/Master/texmf-dist/doc/generic/pst-math/Changes +++ b/Master/texmf-dist/doc/generic/pst-math/Changes @@ -1,4 +1,9 @@ ..... pst-math.pro +0.3 2007-11-01 added SEC, COSEC and COTAN functions (cj) + added a range check on ACOS, ASIN, ACOSH and ATANH + added ArgumentOutOfRange to issue a warning message + in the postscript document if needed + fixed a small bug in SINC 0.2 2007-08-30 added GAMMA function (hv) 0.1 first CTAN version (cj) 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 b9f4114e28e..9b1fb2bc7da 100644 Binary files a/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdf and b/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.pdf 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 e2d92f518a0..671c45e405d 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 @@ -105,7 +105,8 @@ x&\mapsto&{\operator@font#1}(x)\end{array}\right.} \begin{document} -\title{\MathPackage\\ A PSTricks package for enhancing mathematical operators in PSTricks\\ \normalsize ver. 0.2} +\title{\MathPackage\\ A PSTricks package for enhancing mathematical operators in PSTricks\\ +\normalsize ver. 0.3} \author{Christophe \textsc{Jorssen} \texttt{}\\ \footnotesize `libre' is the french word for `free'} \date{\today} \maketitle @@ -154,6 +155,48 @@ Div PSTricks operator rather than with div PS operator.} when $x=k\frac{pi}{2}$. \end{pspicture} \end{SideBySideExample} +\MathPackage{} introduces natural trigonometric postscript operators SEC, COSEC and COTAN +defined by +\[\DefOfOperator{sec}{% + \mathbb R\backslash\{k\frac{\pi}{2},k\in\mathbb{Z}\}}{]-\infty,-1]\bigcup [1,+\infty[}\] +\[\DefOfOperator{cosec}% + {\mathbb R\backslash\{k\pi,k\in\mathbb Z\}}{]-\infty,-1]\bigcup [1,+\infty[}\] +\[\DefOfOperator{cotan}% + {\mathbb R\backslash\{k\pi,k\in\mathbb Z\}}{\mathbb R}\] +where $x$ is in \emph{radians}. +\begin{center} +\begin{tabular}{c|c|c|c} + \textbf{Stack} & \textbf{Operator} & \textbf{Result} & \textbf{Description} \\ + \hline + \textsf{\textsl{num}} & \textsf{\textbf{SEC}} & \textsf{\textsl{real}} & Return secant of + \textsf{\textsl{num}} radians \\ + \hline + \textsf{\textsl{num}} & \textsf{\textbf{COSEC}} & \textsf{\textsl{real}} & Return cosecant of + \textsf{\textsl{num}} radians \\ + \hline + \textsf{\textsl{num}} & \textsf{\textbf{COTAN}} & \textsf{\textsl{real}} & Return cotangent +of \textsf{\textsl{num}} radians +\end{tabular} +\end{center} + +\begin{SideBySideExample}[xrightmargin=10.5cm] + \begin{pspicture}*(-5,-2)(5,2) + \SpecialCoor % For label positionning + \psaxes[labels=y,Dx=/HLCBWz&\pstPI2"]{->}% + (0,0)(-5,-2)(5,2) + \uput[-90](!/HLCBWz&PI" 0){$\pi$} + \uput[-90](!/HLCBWz&PI" neg 0){$-\pi$} + \uput[-90](!/HLCBWz&PI" 2 div 0)% + {$\frac{\pi}{2}$} + \uput[-90](!/HLCBWz&PI" 2 div neg 0)% + {$-\frac{\pi}{2}$} + \psplot[linecolor=blue]{-5}{5}{x /HLCBWz&SEC"} + \psplot[linecolor=red]{-5}{5}{x /HLCBWz&COSEC"} + \psplot[linecolor=green]{-5}{5}{x /HLCBWz&COTAN"} + \end{pspicture} +\end{SideBySideExample} + + \MathPackage{} introduces natural trigonometric postscript operators ACOS, ASIN and ATAN defined by \[\DefOfOperator{acos}{[-1,1]}{[0,\pi]}\] \[\DefOfOperator{asin}{[-1,1]}{[-\frac{\pi}2,\frac{\pi}2]}\] @@ -382,9 +425,24 @@ ATANH defined by \end{pspicture} \end{SideBySideExample} +\section{Warnings} + +Since version 0.3, there is a new feature. When an argument of \textsf{\textbf{ACOS}}, +\textsf{\textbf{ASIN}}, \textsf{\textbf{ACOSH}} or \textsf{\textbf{ATANH}} is out of range, +the result of the calculation does not product a PS error: a zero value is substitued and a +warning message is printed on the postscript version of the document. + +\begin{SideBySideExample}[xrightmargin=10.5cm] + \begin{pspicture}(-1,-4)(5,4) + \psaxes{->}(0,0)(-1,-4)(5,4) + \psplot[linecolor=blue]{/HLCBWz&0"}{5}% + {x ACOSH} + \end{pspicture} +\end{SideBySideExample} + \section{Credits} -Many thanks to Jacques L'helgoualc'h and Herbert Voss. +Many thanks to Jacques L'helgoualc'h, Herbert Voss and Martin Chicoine. \end{document} -- cgit v1.2.3