C Program: Rosenbrock Function
Not what you're looking for?
The Rosenbrock function
f(x,y) = (1 - x)^2 + 100(y - x^2)^2
is a well known test function for optimization methods.
Write a C program which implements 2-D Newton's method to find the minimum of the Rosenbrock function, starting from the point (-2,2). The functions E1(x,y) and E2(x,y) and their x and y partial derivatives should all be coded as functions outside main().
Please see attached pdf file for further details on the question.
Purchase this Solution
Solution Summary
Attached code is well commented, and allows the flexibility to see new (x,y) values computed in each iteration just by uncommenting single statement in the code.
Solution Preview
Please find attached a well commented program, tested for compilation with "gcc -Wall 320942.c".
In case you want to see new (x,y) values computed in each iteration, just ...
Purchase this Solution
Free BrainMass Quizzes
Multiplying Complex Numbers
This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.
Solving quadratic inequalities
This quiz test you on how well you are familiar with solving quadratic inequalities.
Probability Quiz
Some questions on probability
Geometry - Real Life Application Problems
Understanding of how geometry applies to in real-world contexts
Graphs and Functions
This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.