[R] solving equations with several variables

Spencer Graves
Thu, 19 Feb 2004 21:04:39 -0000

"optim"?

Josh Schmidt wrote:

>I am relatively new to R, but I would like to use it find the values of b1
and
>b2 that maximize the following equation:
>
>(sum(cos(x3+2.33474-2(atan(b1*x1+b2*x2)))))
>
>Any help would be greatly appreciated.
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
>