Skip to content

math.NumApprox.Function.argMax_scanGeom

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

dsp-collection / math/NumApprox / argMax_scanGeom

Function: argMax_scanGeom()

function argMax_scanGeom(
   f, 
   argLo, 
   argHi, 
   argFactor): number;

Defined in: math/NumApprox.ts:53

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

It uses multiplicative 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.

argFactor

number

Multiplicative increase factor for the arguments.

Returns

number

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

Clone this wiki locally