CERN home page CERN home page Consult pages Consult pages Writeups at CERN Writeups at CERN Garfield pages Garfield pages Help Help Call Call This page This page Table of contents Keyword index

Call: EXTREMUM


function

The function may depend on all of the currently defined Global variables, it must depend on the variable as function of which the extremum is to be searched. The function should return a single variable of type Number.

This argument is mandatory and should be of the type String.


variable

One of the current Global variables. The name can be chosen freely.

The variable doesn't have to have a value before the procedure is called. Any value associated with it before the procedure is called will be lost, if the search is successful.

On successful completion, the value of the variable is set to the abscissa of the extremum and it will then have the type Number.

The variable is not modified if the search fails.

This argument should be a global variable, not an expression nor a constant.


minimum

The lower end of the parameter range to be searched for an extremum.

This argument is mandatory and must be of the type Number.


maximum

The upper end of the parameter range to be searched for an extremum.

This argument is mandatory and must be of the type Number.


options

A String that can contain zero or more of the following options, separated by commas or blanks:

Option Effect Notes
MAXIMUM Searches for a maximum Not default
MINIMUM Searches for a minimum Default
NOPLOT No plot of the function Default
NOPRINT No printout Default
PLOT Makes a plot of the function Not default
PRINT Prints a progress report Not default


eps_loc

Specifies the location convergence criterion.

The search is declared to have converged when, between 2 iterations, the location of the extremum changes relatively by less than a fraction eps_loc or absolutely by less than an amount eps_loc.

This is an optional parameter of type Number.

Since the function is evaluated in single precision arithmetic, values less than 1e-6 are not meaningful on most computers.

[By default 1e-4.]


eps_fun

Specifies the function value convergence criterion.

The search is declared to have converged when, between 2 iterations, the extreme function value changes relatively by less than a fraction eps_fun or absolutely by less than an amount eps_fun.

This is an optional parameter of type Number.

Since the function is evaluated in single precision arithmetic, values less than 1e-6 are not meaningful on most computers.

[By default 1e-4.]


itermax

Maximum number of parabolic search loops.

The search is abandoned if it has not converged on the basis of eps_loc or eps_fun within the specified number of iterations,

This is an optional parameter of type Number.

[By default 20.]


Go to the top level, to Call, to EXTREMUM, to the topic index or to the table of contents.

Formatted on 0099-12-08 at 15:52.