Max Command

From GeoGebra Manual
Revision as of 17:43, 23 June 2013 by Mathmum (talk | contribs) (added example for functions)
Jump to: navigation, search



Max[ <Number>, <Number> ]
Returns the maximum of the two given numbers.
Example: Max[12, 15] yields 15.
Max[ <List of Numbers> ]
Returns 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 be continuous and have only one local maximum point in the interval.
Example: Max[ x^3 + 2x^2 - 1, -2, 0] creates the point (-1.33, 0.19).
Max[ <Interval> ]
Returns 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>, <Number> ]
Returns the maximum of the two given numbers.
Example: Max[12, 15] yields 15.
Max[ <List of Numbers> ]
Returns the maximum of the numbers within the list.
Example: Max[{-2, 12, -23, 17, 15}] yields 17.
Note: See also Extremum Command and Min Command.
© 2024 International GeoGebra Institute