summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-math/pst-math-doc.tex62
1 files changed, 60 insertions, 2 deletions
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{<christophe.jorssen@libre.fr.invalid>}\\ \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}