The fMax and fMin commands find where maxima and minima occur by using the COBYLA algorithm. They can do this for expressions of one variable or for expressions of several variables subject to a set of constraints, either equalities or inequalities.
fMax(sin(x),x) |
or:
fMax(sin(x)) |
or:
fMax(sin(y),y) |
|
fMin(sin(x),x) |
or:
fMin(sin(x)) |
or:
fMin(sin(y),y) |
|
fMax((x-2)^2+(y-1)^2,[-.25x^2-y^2+1>=0,x-2y+1=0],[x,y],[.5,.75]) |
|
fMin((x-5)^2+y^2-25,[y>=x^2],[x,y],[1,1]) |
|