about summary refs log tree commit diff
path: root/Doc/Zsh/contrib.yo
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-02-14 14:37:53 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-02-16 10:52:27 +0000
commitf96a0167289d41d583b01b17482bba0641be2805 (patch)
tree07a0d58155debe69c3d378618eb6bf2feadec434 /Doc/Zsh/contrib.yo
parent40b3d2a1f65809c9e2e43fe4c426bd231b2a975a (diff)
downloadzsh-f96a0167289d41d583b01b17482bba0641be2805.tar.gz
zsh-f96a0167289d41d583b01b17482bba0641be2805.tar.xz
zsh-f96a0167289d41d583b01b17482bba0641be2805.zip
users/21256 + workers/37965: New math functions min(), max(), sum(), provided by a new autoloadable function 'zmathfunc'.
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-rw-r--r--Doc/Zsh/contrib.yo17
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 07a5eb08e..f8754fbcc 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -3796,6 +3796,23 @@ enditem()
 
 See the comments in the function for a few extra tips.
 )
+findex(max)
+findex(min)
+findex(sum)
+findex(zmathfunc)
+xitem(tt(min+LPAR())var(arg)tt(, ...+RPAR()))
+xitem(tt(max+LPAR())var(arg)tt(, ...+RPAR()))
+xitem(tt(sum+LPAR())var(arg)tt(, ...+RPAR()))
+item(tt(zmathfunc))(
+The function tt(zmathfunc) defines the three mathematical functions
+tt(min), tt(max), and tt(sum).  The functions tt(min) and tt(max) take
+one or more arguments.  The function tt(sum) takes zero or more arguments.
+Arguments can be of different types (ints and floats).
+
+Not to be confused with the tt(zsh/mathfunc) module, described in
+ifzman(the section `The zsh/mathfunc Module' in zmanref(zshmodules))\
+ifnzman(noderef(The zsh/mathfunc Module)).
+)
 findex(zmathfuncdef)
 item(tt(zmathfuncdef) [ var(mathfunc) [ var(body) ] ])(
 A convenient front end to tt(functions -M).