Previous: Linear Algebra, Up: Higher


9.2 Optimization

These functions require that GSLL be loaded.

— Function: antik:maximize-1d function x-lower x-upper &optional x-maximum absolute-error relative-error method

Find the maximum of the function of one variable (x) between x-lower and x-upper. The optional argument x-maximum is a guess of x for the maximum value of the function. Returns the argument and value at the maximum.

— Function: antik:minimize-1d function x-lower x-upper &optional x-minimum absolute-error relative-error method

Find the minimum of the function of one variable (x) between x-lower and x-upper. The optional argument x-minimum is a guess of x for the minimum value of the function. Returns the argument and value at the minimum.

— Function: antik:root-1d function initial derivative &optional absolute-error relative-error method

Find the root of a real function of a real variable. Returns the argument value of the root and the computed value of the function at that value. The argument and return values may be physical quantities.