Question: Please help me understand this problem Write your code in matlab so i can follow. Problem 2: Boundary Value Problem Now consider the boundary value
Please help me understand this problem Write your code in matlab so i can follow.


Problem 2: Boundary Value Problem Now consider the boundary value problem x = 5 cos(40, with (0) 1 and r(6) 0.5 Solve this problem using a second order central difference scheme for x. That is, use the scheme ()2 Use a step size of t-0.01. a) Save the number of interior points (i.e., the number of t values not including t 0 and t (b) Save your approximation of r at time t 3 in A8.dat. (c) Find the time at which r reaches its maximum value. Save this time in A9.dat. n A7.dat. (This should not bet-0 ort 6.) d) Find the time at which r reaches its minimum value. Save this time in A10.dat. (This should not be t or t-6.) Problem 2: Boundary Value Problem Now consider the boundary value problem x = 5 cos(40, with (0) 1 and r(6) 0.5 Solve this problem using a second order central difference scheme for x. That is, use the scheme ()2 Use a step size of t-0.01. a) Save the number of interior points (i.e., the number of t values not including t 0 and t (b) Save your approximation of r at time t 3 in A8.dat. (c) Find the time at which r reaches its maximum value. Save this time in A9.dat. n A7.dat. (This should not bet-0 ort 6.) d) Find the time at which r reaches its minimum value. Save this time in A10.dat. (This should not be t or t-6.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
