Programmer Guide/Command Reference/EVAL/min: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
=====min=====


Returns the smallest value found in the parameters.
Returns the smallest value found in the arguments.


=====Usage:=====
;Usage: '''<code>min(<var>x1</var> {, <var>x2</var> {, ...}})</code>'''
:;<var>x1, x2, ...: scalars, vectors or matrices


<code>min(<var>x</var>)</code>
;Result: The result is the minimum value found in the arguments.


<code>min(<var>x0</var>,<var>x1</var>,...,<var>xN</var>)</code>
;See also: [[Programmer_Guide/Command_Reference/EVAL/imin|imin]], [[Programmer_Guide/Command_Reference/EVAL/absmin|absmin]],  
[[Programmer_Guide/Command_Reference/EVAL/max|max]],


=====Parameters:=====
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
 
;<var>x, xN</var>
 
:A scalar, vector or matrix.
 
=====Return Type:=====
 
scalar
 
=====Examples:=====
 
<pre>
#min := eval min($#t1, $#t2, 1, 2, 100)
</pre>

Revision as of 10:21, 4 April 2011


Returns the smallest value found in the arguments.

Usage
min(x1 {, x2 {, ...}})
x1, x2, ...: scalars, vectors or matrices
Result
The result is the minimum value found in the arguments.
See also
imin, absmin,

max,

<function list>

Navigation menu

Personal tools