Question

Check the file: Questions.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

%problem 1.

f1=@(x) cos(2*x(1))-cos(2*x(2))-0.4;
f2=@(x) 2*(x(2)-x(1))+sin(2*x(2))-sin(2*x(1))-1.2;

f=@(x) [f1(x);f2(x)];

%Jacobian

df=@(x) [-2*sin(2*x(1)) 2*sin(2*x(2)); (-2-2*cos(2*x(1))) (2+2*cos(2*x(2)))];

%start point
x=[1;0];

%tolerance
tol=1.e-12;

done=0;

iteration=0;
while done==0 && iteration < 10
    iteration=iteration+1;
    xnew=x-inv(df(x))*f(x); %newton step
    if norm(xnew-x)<tol
       done=1;
    end
    x=xnew;
end...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

Hemisphere Problem in Matlab
Homework Solution
$18.00
Hemisphere
Mathematics
Matlab
Computing
Geometry
Figures
Volumes
Radius
Dimensions
Input
Output
Statements
VariablesTables
Scripts
Algorithms
Equations in Matlab
Homework Solution
$10.00
Mathematics
Matlab
Computer Science
Coding
Equations
Differential Algebra
Verifying Solutions
Variables
Statements
Random X and Y
Homework Solution
$10.00
Mathematics
Matlab
Random
X
Y
Generate
Rules
Sum
Random
Program
The Mass-Spring System
Homework Solution
$60.00
Matlab
Mass
Initial Value
Spring
Motion
Harmonic
Oscillation
Mass-Spring System
ODE
Damping
Ode45
Equilibrium
Equations in Matlab
Homework Solution
$80.00
Mathematics
Computer Science
Matlab
Nonlinear Equations
Newton-Raphson Method
Termination Conditions
Gaussian Elimination
Built-In Commands
Variables
Statements
Cos
Tanh
M-Files
Arbitrary Systems
Get help from a qualified tutor
Live Chats