Menu

[Solved]-Using Code Matthmatica Havent Able Get Right Answers Need Help Code Mathmatica Program Q37286383

1. Write a Module that implements this forth-order Runge-Kutta method. Your Module should look similar to the above Heuns meIn[11- Heun [ funct, te_, ye_, tfinal_, numsteps 1: Module[ fy ExpIt] Cos [y], beginPoint e, we- yo, endPoint - 4, n 4, t, w,usingthis code for matthmatica i havent been able to get the rightanswers. need help with code
Mathmatica program1. Write a Module that implements this forth-order Runge-Kutta method. Your Module should look similar to the above Heun’s method. Put comments in the Module similar to those in Heun’s method. You may discuss your work with others, but do not plagiarize others. 2. For the following IVP: y’ – Exp[t] Cosly), y(0-0, use the forth- order Runge-Kutta method to approximate the solution on the interval 0 st s4, using n 4, 8, 16, 32. Graph each approximation separately along with the direction field for this IVP. What can be said about this approximation method as the number of subintervals increases (step size decreases). Use your In[11- Heun [ funct, te_, ye_, tfinal_, numsteps 1: Module[ fy ExpIt] Cos [y], beginPoint e, we- yo, endPoint – 4, n 4, t, w, h, m1, m2, m3, j), t 05 h (4-0) / n5 tlist (t) (+Initialize our list of t-values ) wList = {w); (*Initialize our list of w- vaules: the approximations to the solution) Here we loop from 1 to n performing Heun’s method and appending the results to the lists ) For [j 1, j<n+1, j+, m2 = h*f[t + h / 3, w + m1 / 3); m3 hfit 2 h/3, w 2 m2/3]; WEW (m1+3 m3) /45 tList = Append [tList, t); IList = Append [wList, w); Return[ (tlist, wList)] Show transcribed image text 1. Write a Module that implements this forth-order Runge-Kutta method. Your Module should look similar to the above Heun’s method. Put comments in the Module similar to those in Heun’s method. You may discuss your work with others, but do not plagiarize others. 2. For the following IVP: y’ – Exp[t] Cosly), y(0-0, use the forth- order Runge-Kutta method to approximate the solution on the interval 0 st s4, using n 4, 8, 16, 32. Graph each approximation separately along with the direction field for this IVP. What can be said about this approximation method as the number of subintervals increases (step size decreases). Use your
In[11- Heun [ funct, te_, ye_, tfinal_, numsteps 1: Module[ fy ExpIt] Cos [y], beginPoint e, we- yo, endPoint – 4, n 4, t, w, h, m1, m2, m3, j), t 05 h (4-0) / n5 tlist (t) (+Initialize our list of t-values ) wList = {w); (*Initialize our list of w- vaules: the approximations to the solution) Here we loop from 1 to n performing Heun’s method and appending the results to the lists ) For [j 1, j

Expert Answer


Answer to using this code for matthmatica i havent been able to get the right answers. need help with codeMathmatica program … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *