R/zakharov.R

Defines functions zakharov

Documented in zakharov

zakharov <- function(x) {
  term1 <- sum(x^2)
  term2 <- sum(0.5 * x)
  return(term1 + term2^2 + term2^4)
}

Try the EEEA package in your browser

Any scripts or data that you put into this service are public.

EEEA documentation built on June 10, 2025, 9:13 a.m.