Optimization (interval)
Approximate min and max of f on [a,b] by sampling.
Calculator
How to use
Sampling
Not a global optimizer for all functions.
Educational use only. For assessments, show reasoning and check boundary cases.
Approximate min and max of f on [a,b] by sampling.
Not a global optimizer for all functions.
Educational use only. For assessments, show reasoning and check boundary cases.
Model / formula
Min / max on [a,b] (sampling)
Use x (and y if needed): + − * / ^, sin cos tan sqrt abs exp ln log10, pi, e
Result
On [-2,2] sample min ≈ -2.000000, max ≈ 2.000000 (grid; not global search)