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

  Study the code and implement the operator overloading

The Table Q3 on the next page is the code of a class named Circle. Study the code and implement the operator overloading for these relational operators ( , >=) for the Circle class. Then, write a test program that creates two instances of the Circle ..

  Java program to find solution of cryptarithmetic puzzle

A solution to puzzle is S=9, R=8, O=0, M=1, Y=2, E=5, N=6, D=7. Write down a java program which finds solution to cryptarithmetic puzzle of: TOO + TOO + TOO + TOO = GOOD.

  Java program that prompts the user to input an integer

Write a Java program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits.

  Design an abstract data type in java

Design an abstract data type in Java that represents a musical pitch

  Write a java program to perform matrix multiplication

Write a java program to perform matrix multiplication - Your code will need to be able to read in these files, place the contents of each file into separate two-dimensional arrays and then perform the needed multiplication and place the output of t..

  Java program to create a tree

Java program to create a tree, generate class - BottomUpTwoThreeFourTree, BottomUpTwoThreeFourTree,

  Produces a simple formatted report

For this lab you will write a Java program that produces a simple formatted report. The program will prompt the user to enter a file name. This file must contain information in a specific format (detailed below)

  Write java program to store employee id number

Use employee data file called employees.txt should comprise at least 5 employee records. Each record stores employee ID number (six digits) last name, first name, middle inital,gender(m or f).

  Chat monitoring system

The name of the project is chat monitoring system. in the file you will see the screenshot diagram 2A are my design, You need to upgrade, to look professional like the diagram 2B. Java, netbeans and GUI.

  Write a recursive function that finds and returns the sum

Write a recursive function that finds and returns the sum of the elements of an int array. Also, write a program to test your function.

  Write a program that draws a picture of a house

Write a program that draws a picture of a house. It could be as simple as the accompanying figure, or if you like, make it more elaborate

  Your technical leader has submitted additional requirements

a - your technical leader has submitted additional requirements for your application. you have been asked to enhance

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