Matlab : Euler Formula and Runga-Kutta Fourth Order
Not what you're looking for?
I am posting formula called Runge Kutta Fourth Order. This formula need to be written in a matlab program.
I attached sample program how to generate euler formula in mathlab. Based on this program, can any one send matlab program for Runga Kutta Fourth Order?
See attached files for full problem description.
Purchase this Solution
Solution Summary
The Euler Formula is formulated as a Runga-Kutta Fourth Order problem in Matlab.
Solution Preview
I am assuming that the fun.m.txt is the function you wanted to implement. Any other function
which finds (dy/dt) = y' = f(t,y) could be substituted . For example if you change f(t,y) as follows to get a solution for y' = y - t^2 + 1 (as in the problem in the book)
function z =f(t,y)
z = y - t^2 + 1
The function is given below. This is a as is implementation of the algorithm in the book
To use it save it as runga.m , open and type runga(a,b, N , ...
Purchase this Solution
Free BrainMass Quizzes
Know Your Linear Equations
Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.
Exponential Expressions
In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.
Solving quadratic inequalities
This quiz test you on how well you are familiar with solving quadratic inequalities.
Multiplying Complex Numbers
This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.
Graphs and Functions
This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.