Skip to content

math.NumApprox.Function.argMax_scanArith

Christian d'Heureuse edited this page Jun 6, 2026 · 2 revisions

dsp-collection / math/NumApprox / argMax_scanArith

Function: argMax_scanArith()

function argMax_scanArith(
   f, 
   argLo, 
   argHi, 
   argIncr): number;

Searches for the argument of a function maximum by using an arithmetic progression for the arguments.

It uses additive growth of the argument.

Parameters

f

(x) => number

An univariate numeric function.

argLo

number

Lower range limit for the arguments. Start value for the scan.

argHi

number

Upper range limit for the arguments. Stop value for the scan.

argIncr

number

Additive increment for the arguments. Step size.

Returns

number

The first argument that produces the maximum function value, or NaN.

Clone this wiki locally