 Maximum - Maple Help

SignalProcessing

 Minimum
 compute the minimum of an array of samples
 Maximum
 compute the maximum of an array of samples
 MinimumMaximum
 compute, simultaneously, the minimum and maximum values of an array of samples Calling Sequence Minimum(A) Maximum(A) MinimumMaximum(A) Parameters

 A - Array of real numeric values; the signal Options

 • index : return the index of the maximum or minimum value in addition to the value itself Description

 • The Minimum(A) command returns the minimum value of the array A.
 • The Maximum(A) command returns the maximum value of the array A.
 • The MinimumMaximum(A) command computes, simultaneously, the minimum and maximum values of the array A, and returns an expression sequence consisting of these two values, respectively.
 • Before the code performing the computation runs, A is converted to datatype float if it does not have that datatype already. For this reason, it is most efficient if A has this datatype beforehand.
 • If the index option is provided with the Minimum or Maximum command, then an expression sequence consisting of the index of the maximum or minimum value and the value itself is returned. If it is provided with the MinimumMaximum command, then an expression sequence consisting of these four items is returned: index of the minimum value, the minimum value, index of the maximum value, maximum value. • The SignalProcessing[Minimum], SignalProcessing[Maximum] and SignalProcessing[MinimumMaximum] commands are thread-safe as of Maple 17. Examples

 > $\mathrm{with}\left(\mathrm{SignalProcessing}\right):$
 > $a≔\mathrm{Array}\left(\left[3,1,2,4\right],'\mathrm{datatype}'='\mathrm{float}'\left[8\right]\right)$
 ${a}{≔}\left[\begin{array}{cccc}{3.}& {1.}& {2.}& {4.}\end{array}\right]$ (1)
 > $\mathrm{Minimum}\left(a\right)$
 ${1.}$ (2)
 > $\mathrm{Maximum}\left(a\right)$
 ${4.}$ (3)
 > $\mathrm{MinimumMaximum}\left(a\right)$
 ${1.}{,}{4.}$ (4)
 > $\mathrm{Minimum}\left(a,'\mathrm{index}'\right)$
 ${2}{,}{1.}$ (5)
 > $\mathrm{Maximum}\left(a,'\mathrm{index}'\right)$
 ${4}{,}{4.}$ (6)
 > $\mathrm{MinimumMaximum}\left(a,'\mathrm{index}'\right)$
 ${2}{,}{1.}{,}{4}{,}{4.}$ (7) Compatibility

 • The SignalProcessing[Minimum], SignalProcessing[Maximum] and SignalProcessing[MinimumMaximum] commands were introduced in Maple 17.
 • For more information on Maple 17 changes, see Updates in Maple 17.