extract_linear_equations SciMax Toolbox ezgcd

SciMax Toolbox >> extremal_subset

extremal_subset

Maxima Function

Calling Sequence

extremal_subset (s, f, max)
extremal_subset(s,f,min)

Description

Returns the subset of s for which the function f takes on maximum or minimum values.

extremal_subset(s, f, max) returns the subset of the set or list s for which the real-valued function f takes on its maximum value.

extremal_subset(s, f, min) returns the subset of the set or list s for which the real-valued function f takes on its minimum value.

Examples:

(%i1) extremal_subset ({-2, -1, 0, 1, 2}, abs, max);
(%o1)                       {- 2, 2}
(%i2) extremal_subset ({sqrt(2), 1.57, %pi/2}, sin, min);
(%o2)                       {sqrt(2)}
extract_linear_equations SciMax Toolbox ezgcd