E19 numerical methods for engineering applications spring


E19: Numerical Methods for Engineering Applications Spring 2016 - HOMEWORK 11

1. Numerical solution of the parachutist problem

The parachutist.py script on the course website presents analytic and numerical (using Euler's method) solutions to the parachutist problem, a classic introduction to differential equations (see, e.g. https://msemac.redwoods.edu/~darnold/math55/deproj/sp04/coleron/paper1.pdf).

In particular this code showcases a reasonable method to solve ODE's analytically using sympy (which might come in handy for your future course work in Engineering). It also shows how to implement Euler's method generically for any ODE of the form

dy/dx = f(x, y)

where x is a scalar, and y is a vector.

a. Extend the program to implement Heun's method (second order RK method with a = b = ½, α = β = 1), as well as the fourth order RK method given by

yi+1 = yi + h/6(k1 + 2k2 + 2k3 + k1)

where

k1 = f(xi, yi)

k2 = f(xi + h/2, yi + (h/2)k1)

k3 = f(xi + h/2, yi + (h/2)k2)

k4 = f(xi + h, yi + hk3)

b. Plot the numerical solutions with a step size of h = 1 against the analytic solution.

Attachment:- Assignment.rar

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: E19 numerical methods for engineering applications spring
Reference No:- TGS01476015

Expected delivery within 24 Hours