Skip to contents

Easom function

Usage

f_easom(x)

Arguments

x

A numeric vector of length 2.

Value

The function value at x, a single numeric.

Details

The function has multiple local minima and one global minimum in (pi, pi).

References

https://en.wikipedia.org/wiki/Test_functions_for_optimization

Examples

f_easom(c(pi, pi))
#> [1] -1