Extend the program to implement heun method

Assignment Help Computer Engineering
Reference no: EM131097992

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

Reference no: EM131097992

Questions Cloud

Produce female puppies : A geneticist conducts her survey and calculates hat p = 0.512. Which of the following is the most correct interpretation of this statistic? a) There is a 51.2% chance that a randomly selected gamete cell will have the male chromosome.
Four model of relationship between religion and science : Four Philosophy question that I need to be answered in paragraph style. I need them in 4 Hours
Demands in excess of initial stock : What is the expected shortfall at the end of the week? That is, what is the expected number of demands in excess of the initial stock?
Formation of wood andmaintains cell walls : Calciumis essential to tree growth because it promotes the formation of wood andmaintains cell walls. In 1990, the concentration of calcium in precipitation ina certain area was 0.15 milligrams per liter (mg/L). A random sample of 10precipitation ..
Extend the program to implement heun method : E19: Numerical Methods for Engineering Applications Spring 2016 - HOMEWORK 11. 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..
Effect of project-based learning on chemistry : In this project, you will prepare a case study about The Effect of Project-Based Learning on Chemistry RESEARCH PROBLEM: Is there any significant effect of project-based learning on chemistry?
Does this information make it easier to compute a maxflow : Does this information make it easier to compute a maxflow? Develop an algorithm that uses a given mincut to speed up ubstantially the search for maximum-capacity augmenting paths.
Obese and suffer from diabetes : Suppose that 3 % of all adults suffer from diabetes and that 32% of all adults are obese. Suppose also that 1 % of all adults both are obese and suffer from diabetes.
Influence aggregated demand : Suppose that during a given year, the quantity of U.S. real GDP that can produced in the long run rises from $17.9 trillion to 18.0 trillion, measured in based-year dollars. During the year on change occurs in the various factors that influence aggre..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Identify the test objectives and test approaches

A typical download takes one hour, and an interrupted download must be restarted from the beginning. The number of customers downloading at the same time ranges from 10 to 100 throughout peak hours. On average, your system could go down about once..

  Describe how you would use software metrics to help

explain how you would use software metrics to help minimize the number of defects found by customers after release.

  Cnsidering your chosen topic discuss how technologies or

considering your chosen topic discuss how technologies or information systems have contributed to the problem and how

  Explain the evolution of machine language

consider the evolution of machine language from generation one to fifth generation programming language. Also Explain what you think about the future of programming language?

  Define beneficial for certain types of projects

There is a school of thought that argues that, far from being undesirable, some degree of scope creep may in fact be beneficial for certain kinds of projects e.g. it encourages stakeholder engagement, indicates responsiveness, and shows that objec..

  The program must request the quantity of each item ordered

a fast-food vendor sells pizza slices 1.75 fries 2.00 and soft drinks 1.25. write a program to compute a customers

  Assess the impact of the internet on newspaper and book

q1. evaluate the impact of the internet on newspaper and book publishers using the value chain and competitive forces

  What would be a good choice for the other direction and why

We said that at least one direction of a bidirectional search must be a breadth-first search. What would be a good choice for the other direction? Why?

  Taskanswer the question below in an academically rigorous

taskanswer the question below in an academically rigorous manner using business report style with claims supported by

  What is a task pane

What are the different kinds of Window controls? What is the purpose of each.

  Who are the stakeholders in the scenario

You prepare a plan to minimise the impact of the buggy code but this would involve a delay in distribution of the software.

  Summarize purpose of arrahitech and key benefits it

summarize the purpose of arrahitech and the key benefits it offers your selected health care setting. what kinds

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd