Matlab, code to eval Jacobian Matrix numerically

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,373
  • Given code.jpg
    Given code.jpg
    25.9 KB · Views: 2,402
  • q2.jpg
    q2.jpg
    39.7 KB · Views: 1,387
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
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top