Week 8 answer.xlsm - Write a function that when given the name of a1st order diff eqn and its initial conditions preforms RungeKutta method for an input

Week 8 answer.xlsm - Write a function that when given the...

This preview shows page 1 - 7 out of 7 pages.

FOODE1 Time Write a function that when given the name of a1st order diff eqn and its initial conditions preforms RungeKutta method for an input number of timesteps. Create a sub procedure to allow a user to input the name, initial conditions, starting time and timestep size and number of timesteps. Then call a function to calculate the RungeKutta estimation.
Image of page 1
Image of page 2
Euler Method Runge Kutta Method FOODE1 Time FOODE1 Time 10 0 10 0 17.85 1 10 1 24.1614 2 17.85 2 29.23577 3 24.9307 3 33.31556 4 30.523060933 4 36.59571 5 34.875924681 5 39.23295 6 38.258840628 6 41.35329 7 40.887610325 7 43.05805 8 42.930355723 8 44.42867 9 44.517722684 9 45.53065 10 45.75122732 10 46.41664 11 46.709754202 11 47.12898 12 47.454602479 12 47.7017 13 48.033406232 13 48.16217 14 48.483180764 14 48.53238 15 48.832689778 15 48.83004 16 49.10428486 16 49.06935 17 49.315334893 17 49.26176 18 49.479336817 18 49.41645 19 49.606778784 19 49.54083 20 49.705810884 20 49.64083 21 49.782766356 21 49.72122 22 49.842566611 22 49.78586 23 49.889035956 23 49.83783 24 49.92514617 24 49.87962 25 49.953206553 25 49.91321 26 49.975011605 26 49.94022 27 49.991955788 27 49.96194 28 50.005122706 28 49.9794 29 50.015354404 29 49.99344 30 50.02330521 30 50.00472 31 50.029483592 31 50.0138 32 50.034284664 32 50.02109 33 50.038015462 33 50.02696 34 50.040914576 34 50.03168 35 50.043167408 35 50.03547 36 50.04491803 36 50.03852 37 50.046278396 37 Create a UserForm that allows the name of a function containing a1st order diff eqn, a starting point, a number of timesteps and the size of the time steps. Allow the user to choose between Runge-Kutta or eulers method. Pass this information to functions that will perform the input calculations and display the data on the sheet.
Image of page 3
50.04097 38 50.047335504 38 50.04294 39 50.048156958 39 50.04452 40 50.048795289 40 50.0458 41 50.049291322 41 50.04682 42 50.049676776 42 50.04764 43 50.049976304 43 50.0483 44 50.05020906 44 50.04884 45 50.050389929 45 50.04926 46 50.050530478 46 50.04961 47 50.050639695 47 50.04989 48 50.050724565 48 50.05011 49 50.050790516 49 50.05029 50 50.050841764 50 50.05043 51 50.050881588
Image of page 4
Image of page 5
Image of page 6
Image of page 7

You've reached the end of your free preview.

Want to read all 7 pages?

  • Spring '18

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors