Difference between revisions of "Max Command"

From GeoGebra Manual
Jump to: navigation, search
m (nicer note formatting - missing indentation)
(:Calculates the '''local''' maximum)
Line 12: Line 12:
 
:{{example| 1=<code><nowiki>Max(12, 15)</nowiki></code> yields ''15''.}}
 
:{{example| 1=<code><nowiki>Max(12, 15)</nowiki></code> yields ''15''.}}
 
;Max( <Function>, <Start x-Value>, <End x-Value> )
 
;Max( <Function>, <Start x-Value>, <End x-Value> )
: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.  
+
:Calculates the '''local''' maximum point of the function in the given interval. The function should be continuous and have only one ''local'' maximum point in the interval.  
 
:{{note| 1=For polynomials you should use the [[Extremum Command]].}}
 
:{{note| 1=For polynomials you should use the [[Extremum Command]].}}
 
:{{example| 1=<code><nowiki>Max(exp(x)x^2,-3,-1)</nowiki></code> creates the point (-2, 0.54134).}}
 
:{{example| 1=<code><nowiki>Max(exp(x)x^2,-3,-1)</nowiki></code> creates the point (-2, 0.54134).}}

Revision as of 16:14, 9 May 2019


Max( <List> )
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 this command considers the numbers associated with those objects. If you have a list of segments for example, the command Max( <List> ) will yield the maximum segment length.
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.
Max( <Number>, <Number> )
Returns the maximum of the two given numbers.
Example: Max(12, 15) yields 15.
Max( <Function>, <Start x-Value>, <End x-Value> )
Calculates the local maximum point of the function in the given interval. The function should be continuous and have only one local maximum point in the interval.
Note: For polynomials you should use the Extremum Command.
Example: Max(exp(x)x^2,-3,-1) creates the point (-2, 0.54134).
Max(<List of Data>, <List of Frequencies> )
Returns the maximum of the list of data with corresponding frequencies.
Example: Max({1, 2, 3, 4, 5}, {5, 3, 4, 2, 0}) yields 4, the highest number of the list whose frequency is greater than 0.


Note:
© 2024 International GeoGebra Institute