Numerical solution of a two-point boundary-value problem

Assignment Help JAVA Programming
Reference no: EM13537364

How to combine both Secant and Runge-Kutta methods and make it to the two-point boundary-value.

Construct a computer program that uses both the secant  method and the Runge-Kutta method to obtain a numerical solution to the two-point boundary-value problem:

x' = f(t,x) = x + 0.09 x 2 + cos(10 t) differential equation

x(0) + x(1) - 3.0 = 0 boundary condition

Starting with the initial guesses 0.7 and 1.0 for the (unknown) initial value, x(0), obtain an approximation to x(0) {for the final solution, x(t)} such that the boundary condition is satisfied to within a tolerance of 10-4

Use a fixed stepsize of 0.025 (i.e., take 40 steps each time you integrate the differential equation from t=0 to t=1). 

Write your program so that the output shows the values of x(0), x(1), and x(0)+x(1)-3 (the error in satisfying the boundary condition) at the end of each iteration of the secant method.

After the last iteration of the secant method, re-integrate from t=0 to t=1 and print out the solution for x(t) over the range [0,1].

1362_Runge-Kutta method.jpg

Reference no: EM13537364

Questions Cloud

Evaluate the maximum height reached by the ball : A soccer ball is kicked with an initial speed of 27m/s at an angle of 23 degrees with respect to the horizon. Find the maximum height reached by the ball
What is the rocks speed when it hits the water : Imagine that you are standing at the top of a cliff 45 m high overlooking the ocean and you throw a rock straight downward at a speed of 15m/s
Explain a mixture of potassium iodide and benzoic acid : Describe the Liquid-liquid extraction of a mixture of potassium iodide , benzoic acid and napthalene. Explain reactions and interactions that are important
What should be the magnetic field strength : An electric motor contains a 250-turn circular coil 5.8cm in diameter. If it is to develop a maximum torque of 1.6Nm at a current of 4.0 A, what should be the magnetic field strength
Numerical solution of a two-point boundary-value problem : How to combine both Secant and Runge-Kutta methods and make it to the two-point boundary-value - Numerical Solution of a Two-Point Boundary
How far is the rocket above the earths surface : A 2.60×104- rocket blasts off vertically from the earth's surface with a constant acceleration. How far is the rocket above the earth's surface when it breaks the sound barrier
Differentiate between direct and indirect costs of bankruptc : Differentiate between direct and indirect costs of bankruptcy. Which of the two is generally more significant?
Define why the number of moles must remain constant : Explain why the number of moles must remain constant for any of the gas laws to apply
What is the difference between shareholder reporting : What is the difference between shareholder reporting and tax reporting of profits?

Reviews

Write a Review

JAVA Programming Questions & Answers

  You have in your program an arraylist which contains

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

  Write a recursive boolean method named ismember in java

Write a recursive boolean method named isMember in Java. The method should accept three arguments: an array, a value to search for, and the size of the part of the array being searched.

  1 what makes a program easy to modify2 describe the order

1. what makes a program easy to modify?2. describe the order of magnitude of the following code section using bigo

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Write a statement that writes both of their values

Given an interger variable i and floating-point variable f, write a statement that writes both of their values to standard output in the following format: i=value-of-i f=value-of-f.

  Write a void function this passed three integers

1. Write a void function this passed three integers by reference. The function should rearrange the parameter values so that the first parameter will get the smallest value; the second parameter the middle value; and the third parameter the largest v..

  Simulate a simple version of a game called liar dice

The first player claims a Poker hand (see "Hand Ranks" below for legal calls). When making a claim, a player says what all five dice are, not just the name of the hand. For example, a player should say, "I have a full house: three 4s and two 5s," ..

  Create an array of date objects

Create an array of Date objects of size 4. Initialize the array by using a loop. In the loop, use the Scanner.nextLine() method to input a date as a string, convert it to a date by using the toDate() method, and assign the result to an element in ..

  Write a program that allows a user to enter a line of text

write a program that allows a user to enter a line of text counts number of words and number of vowels in the sentence

  Develop a java based gui application using swing that

develop a java based gui applicationusing swing that allows the user to enter charityfund informationwrite the

  Using an array in java

Using an array in Java - have a list of keywords from a web service and have to print out the list of keywords on the screen with one keyword on each line. This is my code

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