summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-16 03:00:44 +0000
committerNorbert Preining <norbert@preining.info>2021-05-16 03:00:44 +0000
commit2fc2609488764102ce43194e9288b7bd8e25f17f (patch)
tree9cf16b567d06c110c71e2c121c7cf5c16a086f02 /graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
parentff5439d00ba53d3e4b82d79f78ce65524f3684fd (diff)
CTAN sync 202105160300
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex')
-rw-r--r--graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex13
1 files changed, 12 insertions, 1 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
index d694ef7355..c0d32d4d9c 100644
--- a/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
+++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
@@ -484,7 +484,7 @@ The following functions are recognized:
\begin{tikzpicture}
\foreach \f [count=\i from 0] in
{abs,acos,add,and,array,asin,atan,atan2,bin,ceil,cos,
- cosec,cosh,cot,deg,depth,div,divide,e,equal,factorial, false,
+ cosec,cosh,cot,deg,depth,dim,div,divide,e,equal,factorial, false,
floor,frac,gcd,greater,height,hex,Hex,int,ifthenelse,iseven,isodd,isprime,
less,ln,log10,log2,max,min,mod,Mod,multiply,
neg,not,notequal,notgreater,notless,
@@ -1332,6 +1332,17 @@ some notable exceptions.
%
\end{math-function}
+\begin{math-function}{dim(\mvar{x})}
+\mathcommand
+ This returns the dimension of the array \mvar{x}. The array must begin and
+ end with braces (e.g., |{1,2,3,4}|).
+ %
+\begin{codeexample}[]
+\pgfmathparse{dim({1,2,3,4})} \pgfmathresult
+\end{codeexample}
+ %
+\end{math-function}
+
The following hyperbolic functions were adapted from code suggested by Martin
Heller: