find a minimizer

Hi, I need help with how to do this please! Use R to find a minimizer of the function
f(x) = (x−3)4 + 7(x−2)2 + x.

You may be interested in the function optimize. This looks like it may be homework so I'll suggest you read the documentation on that and see if you can get it to work, and if you have some specific difficulty come back here and post the code you tried, describe the specific problem you are having, etc.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.