NMaximize
A numeric global maximum of f over a BOUNDED interval, as {value, {x -> point}} -- dense sampling plus a golden-section refinement, not an exact answer.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
NMaximize!NMaximize({f, cons}, x)the numeric global maximum of f over the bounded interval cons implies, for any real-valued f (not just the exact core Maximize covers).Typed signatures
| Type | Package | Applies |
|---|---|---|
(tuple<expression, expression>, list<symbol> | symbol) -> expression | analytic | always |
Details
- NMinimize's exact mirror image -- same method (201-point sampling plus a golden-section refinement, converged to a bracket width under 1e-11 relative to the interval), same requirement for an explicit bounded constraint, same declines. See its
detailsfor the full account. - When f has more than one point attaining the same global maximum, this reports whichever the sampling grid's basin of attraction happens to land on first -- a different, equally valid witness than another correct implementation (or Wolfram's own NMaximize) might report for the same value.
Examples
About
| Examples | 2 |
|---|---|
| Checked against | Wolfram Language 2 differ |
| Crosswalk | Wolfram Language |