 # Mathematics Questions Using Matlab

Subject Mathematics MATLAB for Mathematics

## 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

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.