Matlab, code to eval Jacobian Matrix numerically

Click For Summary
The discussion revolves around a homework problem related to Newton's Method, specifically focusing on evaluating the Jacobian matrix numerically. The user has successfully completed several parts of the assignment but is struggling with part c, particularly in modifying provided code to fit their needs and understanding how to run it. They mention having developed their own Newton iteration solver and computing the Jacobian using its definition. The user seeks clarification on the inputs required for the functions in the provided code and expresses a desire for assistance with numerical derivatives and the Jacobian. Overall, the conversation highlights challenges in applying numerical methods in MATLAB for solving equations.
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,382
  • Given code.jpg
    Given code.jpg
    25.9 KB · Views: 2,419
  • q2.jpg
    q2.jpg
    39.7 KB · Views: 1,396
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
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

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
3K
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
26
Views
3K