Difference between revisions of "Min Command"

From GeoGebra Manual
Jump to: navigation, search
(added example for functions)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|cas=true|algebra}}
 
{{command|cas=true|algebra}}
;Min[ <Number a>, <Number b> ]
+
;Min[ <Number>, <Number> ]
:Gives the minimum of the given numbers ''a'' and ''b''.
+
:Returns the minimum of the two given numbers.
:{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code>  yields ''12''.</div>}}
+
:{{example| 1=<code><nowiki>Min[12, 15]</nowiki></code>  yields ''12''.}}
 
;Min[ <List of Numbers> ]
 
;Min[ <List of Numbers> ]
:Gives the minimum of the numbers within the list.
+
:Returns the minimum of the numbers within the list.
:{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code>  yields ''-23''.</div>}}
+
:{{example| 1=<code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code>  yields ''-23''.}}
:{{note| 1=If the input consists of non-numeric objects, then Min[] considers the numbers associated with those objects.  For example, Min[List of Segments] will yield the minimum segment length.}}
+
:{{note| 1=If the input consists of non-numeric objects, then ''Min''[] considers the numbers associated with those objects.  For example, ''Min''[''List of Segments''] will yield the minimum segment length.}}
 
;Min[ <Function>, <left-x>, <right-x> ]
 
;Min[ <Function>, <left-x>, <right-x> ]
 
:Calculates (numerically) the minimum point for function in the given interval. Function should be continuous and have only one ''local'' minimum point in the interval.  
 
:Calculates (numerically) the minimum point for function in the given interval. Function should be continuous and have only one ''local'' minimum point in the interval.  
 +
:{{example| 1=<code><nowiki>Min[ x^3 + 2x^2 - 1, -2, 0]</nowiki></code> creates the point (0, -1).}}
 
;Min[ <Interval> ]
 
;Min[ <Interval> ]
:Gives the lower bound of the interval.
+
:Returns the lower bound of the interval.
:{{example| 1=<div><code><nowiki>Min[2 < x < 3]</nowiki></code> yields ''2'' .</div>}}
+
:{{example| 1=<code><nowiki>Min[2 < x < 3]</nowiki></code> yields ''2'' .}}
 
:{{note| 1=Opened and closed intervals are not distinguished.}}
 
:{{note| 1=Opened and closed intervals are not distinguished.}}
 
==CAS Syntax==
 
==CAS Syntax==
;Min[ <Number a>, <Number b> ]
+
;Min[ <Number>, <Number> ]
:Gives the minimum of the given numbers ''a'' and ''b''.
+
:Returns the minimum of the two given numbers.
:{{example| 1=<div><code><nowiki>Min[12, 15]</nowiki></code>  yields ''12''.</div>}}
+
:{{example| 1=<code><nowiki>Min[12, 15]</nowiki></code>  yields ''12''.}}
 
;Min[ <List of Numbers> ]
 
;Min[ <List of Numbers> ]
:Gives the minimum of the numbers within the list.
+
:Returns the minimum of the numbers within the list.
:{{example| 1=<div><code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code>  yields ''-23''.</div>}}
+
:{{example| 1=<code><nowiki>Min[{-2, 12, -23, 17, 15}]</nowiki></code>  yields ''-23''.}}
{{note| 1=See also [[Extremum Command]] and [[Function Inspector Tool]].}}
+
{{note| 1=See also [[Max Command]], [[Extremum Command]] and [[Function Inspector Tool]].}}

Revision as of 17:51, 23 June 2013



Min[ <Number>, <Number> ]
Returns the minimum of the two given numbers.
Example: Min[12, 15] yields 12.
Min[ <List of Numbers> ]
Returns the minimum of the numbers within the list.
Example: Min[{-2, 12, -23, 17, 15}] yields -23.
Note: If the input consists of non-numeric objects, then Min[] considers the numbers associated with those objects. For example, Min[List of Segments] will yield the minimum segment length.
Min[ <Function>, <left-x>, <right-x> ]
Calculates (numerically) the minimum point for function in the given interval. Function should be continuous and have only one local minimum point in the interval.
Example: Min[ x^3 + 2x^2 - 1, -2, 0] creates the point (0, -1).
Min[ <Interval> ]
Returns the lower bound of the interval.
Example: Min[2 < x < 3] yields 2 .
Note: Opened and closed intervals are not distinguished.

CAS Syntax

Min[ <Number>, <Number> ]
Returns the minimum of the two given numbers.
Example: Min[12, 15] yields 12.
Min[ <List of Numbers> ]
Returns the minimum of the numbers within the list.
Example: Min[{-2, 12, -23, 17, 15}] yields -23.
© 2024 International GeoGebra Institute