{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework 7 Bob 25.1 25.2

# Homework 7 Bob 25.1 25.2 - 25.1 In an effort to conserve...

This preview shows pages 1–4. Sign up to view the full content.

25.1) In an effort to conserve paper and grading time we will present only the lines of code which were changed in mywasher.m and mywedge.m as well as the 3D graphs produced by the programs after modifications. The code to mywasher.m was modified by the following: Line 164 was changed to z = (x+y)./(x.^2+y.^2) Lines 195 and 196 were commented out z = (x+y)./(x.^2 + y.^2); % Set node values to a linear funtion. % z(49:64) = 0; % Set inner boundary nodes to zero. % z(1:32) = 0; % Set interior nodes to zero. Figure 25.1a1 – Plan View of mywasher.m Figure 25.1a2 – Isometric View of mywasher.m The code to mywedge.m was modified by the following:

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Line 40 was changed to z = sin(x) + sqrt(y) Line 41 was commented out % Set node values to a function z = sin(x) + sqrt(y); %z(1:9) = 0; f = z; Figure 25.1b1 – Plan View of mywedge.m Figure 25.1b2 – Isometric view of mywedge.m 25.2) The function m file for mythreecorners.m was modified to produce a new program called myceters.m which calculates the integral based on the center point of the triangles. The x and y values of each
triangle were averaged to determine the center point.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern