This is just an oridinary cosine being raised to a power. It is written that way by convention to save parentheses and to make it clear that it is the result of applying the cosine which is raised to the power (rather than raising the argument to a power prior to taking its cosine). Use:
f <- function(x,theta){
theta*cos(x)^(theta + 1)
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments