Hints for Assignment 4:
Problem 1: Plot tan(x) and x to see where the
solutions are located. Problem 3(a): Example: For x1 in [-8,8], x2 in [-10,10]
plot points where sin(x1-x2)+x1^3/20 = 0 with solid blue curves, plot
points where cos(x1+x2)-x2^2/20 = 0 with dashed red curves:
[X1,X2] = meshgrid(-8:.2:8,-10:.2:10);
contour(X1,X2, sin(X1-X2)+X1.^3./20 ,[0 0],'b-'); hold on
contour(X1,X2, cos(X1+X2)-X2.^2./20 ,[0 0],'r--'); hold off
You must use .* , ./ ,
.^ in the expressions for the functions.
Results of the midterm exam: The top 25% are between 99 and 85, the next
25% are between 85 and 74, the next 25% are between 74 and 62, the bottom
25% are between 62 and 27. The median is 74, the average is 71.