Matlab, code to eval Jacobian Matrix numerically

Click For Summary
SUMMARY

This discussion focuses on implementing Newton's Method in MATLAB, specifically for evaluating the Jacobian matrix numerically. The user has successfully completed parts of the homework but struggles with modifying provided code for part c. Key points include defining the Jacobian correctly and understanding the function inputs for the Newton iteration solver. The user emphasizes the importance of correctly implementing the Jacobian to facilitate the numerical solution of equations.

PREREQUISITES
  • Understanding of Newton's Method for numerical solutions
  • Familiarity with MATLAB programming and function definitions
  • Knowledge of Jacobian matrix computation
  • Experience with numerical differentiation techniques
NEXT STEPS
  • Research MATLAB function syntax for defining and using multiple functions
  • Learn about numerical differentiation methods for Jacobian computation
  • Explore advanced topics in Newton's Method, including convergence criteria
  • Study examples of MATLAB implementations of Newton's Method for better understanding
USEFUL FOR

Students and educators in mathematics or engineering fields, MATLAB programmers, and anyone looking to deepen their understanding of numerical methods and Jacobian matrix evaluation.

Gameowner
Messages
43
Reaction score
0

Homework Statement



The question is in 5 parts all mainly to do with Newton's Method, I've done parts a,b,d and e, but am struggling with the understanding of part c. They have given us the code but unsure as to how to modify my own code to suit the question.

Another problem is I don't seem to know how to run the code they gave us.



Homework Equations





The Attempt at a Solution



I've attached my code(which is the answer to part b and also what they refer to in part c as ''your Newton's method code'
 

Attachments

  • mycode.jpg
    mycode.jpg
    40.6 KB · Views: 2,392
  • Given code.jpg
    Given code.jpg
    25.9 KB · Views: 2,430
  • q2.jpg
    q2.jpg
    39.7 KB · Views: 1,407
Physics news on Phys.org
I wrote my own Newton interation solver, and it wasn't too hard to do either (once I got my Jacobian defined correctly, 4 months to figure that one out...)

My MATLAB program was it two parts, one was computing the Jacobian by computing the Jacobian using the definition of the Jacobian. The other part defined the set of equations I wish to solve, this would usually be written as a function.

What you have here are two functions. so what you have to figure out is what are the inputs of these functions and how the function makes use of them. I would post my program but I fear that I would get slapped by the mods...
 
Hola amigos necesito el de N-R pero con la derivada numérica y el jacobiano con la derivada numérica me pueden ayudar saludos
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
6K