Construct a computer program for runge-kutta method

Assignment Help Computer Engineering
Reference no: EM132095208

Please Code this in java. Design and construct a computer program in one of the approved languages (C, C++, C#, Java, Pascal, Python, etc.) that will illustrate the use of a third-order explicit Runge-Kutta method of your own design.

In other words, you will first have to solve the Runge-Kutta equations of condition for the coefficients of a third-order Runge-Kutta method. Then, you will use these coefficients in a computer program to solve the ordinary differential equation below.

The initial value problem to be solved is the following: x'(t) =1 + sin(12 t) x(t) subject to the initial condition: x(0) = 1.0 Obtain a numerical solution to this problem over the range from t=0.0 to t=2.0 for seven different values of the stepsize, h=0.1, 0.05 , 0.025 , 0.0125 , 0.00625 , 0.003125 , and 0.0015625 .

In other words, make seven runs with 20, 40, 80, 160, 320, 640, and 1280 steps, respectively. For each run, print out the value of h and then a table of t and x. The answer at the end of the integration is about 2.9769173907278

Hint: It is often helpful to test your program on simple differential equations (such as x' = 1 or x'=t or x'=x) as a part of the debugging process.

Once you have worked these simple cases, then try working the nonlinear differential equation given above for the assignment (with a small stepsize).

Also, check your coefficients to make sure that they satisfy the equations of condition and that you have assigned these correct values to the variables or constants in your program properly.

For example, a common error is to write something like: a2 = 1/2; when you meant to write a2 = 1.0/2.0; so please be careful. Write down (in your output file or in a text file) any conclusions that you can make from these experiments (e.g., what happens as h is decreased?).

If you have the code for the 1st run I will modify it for the next 7.

Reference no: EM132095208

Questions Cloud

Determine and print out the number of quarters : Input the number of quarters, dimes, nickels, and pennies from the user. Print out the number of coins and total value in dollars.
Write a method named promptstring in java : The Star Wars universe is a world based on a series of movies from the 70s and then later the late-90s and early-00s.
What is the machine net present value : At the end of 6 years, the packing machine will be sold for $5,290. Rayburn's required rate of return is 8%. What is the machine's net present value
What are some of the community-specific communication : 1) What are some of the community-specific communication issues that exist in your community? 2) How does your community profile affect risk perception?
Construct a computer program for runge-kutta method : Design and construct a computer program in one of the approved languages that will illustrate the use.
Supplemental handouts folder : First, please read the excerpt from John Rawls A Theory of Justice. This reading can be found in the Supplemental Handouts folder.
What is the journal entry needed to record the transaction : On March 17, Grady Company agrees to accept a 60-day, What is the journal entry needed to record the transaction by Alert Company
Relatives in warning processes : What is the role of peer contacts friends, neighbors, and relatives in warning processes?
Design a 3-bits asynchronous counter : Design a 3-bits asynchronous counter that have both "count up" and "count down" ability.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the data transfer rate across the bus

What is the data transfer rate across the bus (in bytes/second) for this microprocessor and can you solve this problem I got stuck it's important!!.

  Create a jquery mobile app to record your daily activities

Create a JQuery mobile app to record your daily activities - Only the activities of the current user are displayed. Users can select an activity from the listview and see the activity details.

  How should the us government react to the situation

How are computers supposed to be secure when hackers are coming up with new ways to attack computers every day?

  Analyze the distribution of flops

Assume that n = mp. Rewrite the node program with the assumption that Procfjs) computes G(:, (JL - l)m + l:JLm). As in the previous problem.

  Create a complete program that uses classes to store data

CS1026: Assignment- In this assignment you will create a complete program that uses classes to store, search, sort, remove, and filter country data. The two major tasks are outlined below.

  How much of workflow has been automated at your university

Indicate possible errors (including deadline expiry) and how they are dealt with. Study how much of the workflow has been automated at your university.

  The integration of data management and analytics technology

What opportunities are created by the integration of data management and analytics technologies under the same conceptual architecture?

  Find out the number of times a string is present

How to use Java classes to find out the number of times a string is present in another string.

  Write a program that accepts data from one column

Write a program that accepts data from one column and returns the corresponding data from the other columns in the stored file.

  What is the cost of the minimum spanning tree

Show the set of edges that comprise the minimum spanning tree. What is the cost of the minimum spanning tree?

  You have been asked to be the project manager for the

you have been asked to be the project manager for the development of an information technology it project. the system

  Be sure to use variables the scanner class and computations

develop a computer class that describes your computer. the class must have at least five attributes comprised of a

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