Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the local minima of an expression with respect to the given variables
ResourceFunction["LocalMinima"][expr,x] computes the local minima of expr with respect to x. | |
ResourceFunction["LocalMinima"][expr,{x,y,…}] computes the local minima of expr with respect to multiple variables. | |
ResourceFunction["LocalMinima"][{expr,const},{x,y,…}] computes the local minima of expr subject to the constraint const. |
Compute the local minima of a polynomial:
| In[1]:= |
| Out[1]= |
Plot them:
| In[2]:= |
| Out[2]= | ![]() |
Use a constraint in order to reduce the domain upon which minima can be found:
| In[3]:= |
| Out[3]= |
Compute the minima of a function of two variables:
| In[4]:= |
| Out[4]= |
LocalMinima may return duplicate results for periodic functions:
| In[5]:= |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License