Illustrate the use of a third-order explicit runge-kutta

Assignment Help JAVA Programming
Reference no: EM132095189

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?).

Reference no: EM132095189

Questions Cloud

Compute the gross margin for baxter company : Compute the gross margin for Baxter Company using the following cost flow assumptions: (1) FIFO, (2) LIFO, (3) Weighted Average
Define the metadata : Define the metadata. Do you think it is important to remove metadata before distributing a document? Justify your answer.
Create logic to achieve desirable relationships : Try combinations of adding and subtracting the three terms. You might need to multiple one term by 2 in order to create logic to achieve desirable relationships
Write a program that asks the user for the number of student : The program then calls a function named computeAverage The number of students should be used as a parameter of the computeAverage function.
Illustrate the use of a third-order explicit runge-kutta : Design and construct a computer program in one of the approved languages hat will illustrate the use of a third-order explicit Runge-Kutta method.
Tactics between traditional structures and holacracy : Describe how this change will influence the tools available to motivate employees.
Discuss carr theory of business bluffing : Discuss Carr's theory of business bluffing in relation to the Enron case study. Do you think the Enron case study supports or refutes
Discuss about the ivory tower anti-pattern : Goldplating anti-pattern: since architects seem to be not really engaged with developers.
What amount should be reported in the statement : What amount should be reported in the statement of financial position for the patent, net of accumulated amortization, at December 31, 2015

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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