Difference between revisions of "Max Command"

From GeoGebra Manual
Jump to: navigation, search
Line 6: Line 6:
 
;Max[ <List of Numbers> ]
 
;Max[ <List of Numbers> ]
 
:Gives the maximum of the numbers within the list.
 
:Gives the maximum of the numbers within the list.
:{{example| 1=<div><code><nowiki>Max[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''17''.</div>}}
+
:{{example| 1=<div><code><nowiki>Max[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''17''.</div>}}
 
:{{note| 1=If the input consists of non-numeric objects, then ''Max[]'' considers the numbers associated with those objects.  For example, ''Max[List of Segments]'' will yield the maximum segment length.}}
 
:{{note| 1=If the input consists of non-numeric objects, then ''Max[]'' considers the numbers associated with those objects.  For example, ''Max[List of Segments]'' will yield the maximum segment length.}}
 
;Max[ <Function>, <left-x>, <right-x> ]
 
;Max[ <Function>, <left-x>, <right-x> ]
 
:Calculates the maximum point of the function in the given interval. The function should only have on maximum point in the interval.  
 
:Calculates the maximum point of the function in the given interval. The function should only have on maximum point in the interval.  
 +
;Max[ <Interval> ]
 +
:Gives the upper bound of the interval.
 +
:{{example| 1=<div><code><nowiki>Max[2 < x < 3]</nowiki></code> yields ''3''.</div>}}
 
{{note| 1=See also [[Extremum Command]], [[Min Command]] and [[Function Inspector Tool]].}}
 
{{note| 1=See also [[Extremum Command]], [[Min Command]] and [[Function Inspector Tool]].}}
;Max[ <Interval> ]
+
:{{note| 1=Open and closed intervals are treated the same.}}
:Gives the upper bound of the interval, e.g. <code><nowiki>Max[2 < x < 3]</nowiki></code> yields ''3''. It is the same for open and closed intervals.
 
 
==CAS Syntax==
 
==CAS Syntax==
 
;Max[ <Number a>, <Number b> ]
 
;Max[ <Number a>, <Number b> ]
 
:Gives the maximum of the given numbers ''a'' and ''b''.
 
:Gives the maximum of the given numbers ''a'' and ''b''.
:{{example| 1=<div><code><nowiki>Max[12, 15]</nowiki></code> yields ''15''.</div>}}
+
:{{example| 1=<div><code><nowiki>Max[12, 15]</nowiki></code> yields ''15''.</div>}}
 
;Max[ <List of Numbers> ]
 
;Max[ <List of Numbers> ]
 
:Gives the maximum of the numbers within the list.
 
:Gives the maximum of the numbers within the list.
:{{example| 1=<div><code><nowiki>Max[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''17''.</div>}}
+
:{{example| 1=<div><code><nowiki>Max[{-2, 12, -23, 17, 15}]</nowiki></code> yields ''17''.</div>}}

Revision as of 13:27, 18 September 2012


Max[ <Number a>, <Number b> ]
Gives the maximum of the given numbers a and b.
Example:
Max[12, 15] yields 15.
Max[ <List of Numbers> ]
Gives the maximum of the numbers within the list.
Example:
Max[{-2, 12, -23, 17, 15}] yields 17.
Note: If the input consists of non-numeric objects, then Max[] considers the numbers associated with those objects. For example, Max[List of Segments] will yield the maximum segment length.
Max[ <Function>, <left-x>, <right-x> ]
Calculates the maximum point of the function in the given interval. The function should only have on maximum point in the interval.
Max[ <Interval> ]
Gives the upper bound of the interval.
Example:
Max[2 < x < 3] yields 3.
Note: Open and closed intervals are treated the same.

CAS Syntax

Max[ <Number a>, <Number b> ]
Gives the maximum of the given numbers a and b.
Example:
Max[12, 15] yields 15.
Max[ <List of Numbers> ]
Gives the maximum of the numbers within the list.
Example:
Max[{-2, 12, -23, 17, 15}] yields 17.
© 2024 International GeoGebra Institute