Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Check if a function is monotonic
ResourceFunction["MonotonicFunctionQ"][f,x] gives True if f is monotonic with respect to x. | |
ResourceFunction["MonotonicFunctionQ"][f,x,dir] restricts the test to the direction dir. |
Compute whether an expression is monotonic:
In[1]:= | ![]() |
Out[1]= | ![]() |
Determine if an expression is increasing:
In[2]:= | ![]() |
Out[2]= | ![]() |
Note that a function with regions where it is constant may still be considered increasing:
In[3]:= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
For more information on the monotonicity of the input expression, use the resource function FunctionMonotonicity:
In[5]:= | ![]() |
Out[5]= | ![]() |
Such a curve is not strictly monotonic though:
In[6]:= | ![]() |
Out[7]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License