Question: Use PYTHON or MATLAB thank you! In the next two questions, you will try to determine an order of accuracy for your method: 2. To

Use PYTHON or MATLAB thank you!

Use PYTHON or MATLAB thank you! In the next two questions, you

In the next two questions, you will try to determine an order of accuracy for your method: 2. To get a better feel for how the error behaves as the grid gets finer, take 500 values of H, where H spans 2 or 3 orders of magnitude, and for each value of H, randomly generate three numbers, h, h2, and h3, where each hi E [0,H]. For each value H, compute your approximation to u"(r2) using the randomly generated hi E[0, H Plot these approximate values against H on a log-log plot to get a scatter plot of the behavior as H0. NOTE: in MATLAB the command x -Hrand(1) will produce a single random number in the range o,H

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!