- #1

- 2

- 0

I have two points A and B (in 2 dimensions) and want to use runge kutta 4th order to give me points between these two points starting from A __> B (NOT B___> A). How can I choose the initial point then.

Cheers,

- Thread starter sos 2011
- Start date

- #1

- 2

- 0

I have two points A and B (in 2 dimensions) and want to use runge kutta 4th order to give me points between these two points starting from A __> B (NOT B___> A). How can I choose the initial point then.

Cheers,

- #2

HallsofIvy

Science Advisor

Homework Helper

- 41,833

- 961

- #3

- 2

- 0

- #4

- 36

- 0

I don't quite understand what you are asking. Are you saying you have an interval

[A, B]

and you want to fill in the graph between these x values?

I don't see how your saying a Runge Kutta method would go "anywhere"? It has to follow the differential equations you have.

EDIT:

If I remember correctly, to apply Runge Kutta you start with the location of the given initial condition, and then iterate from there.

[A, B]

and you want to fill in the graph between these x values?

I don't see how your saying a Runge Kutta method would go "anywhere"? It has to follow the differential equations you have.

EDIT:

If I remember correctly, to apply Runge Kutta you start with the location of the given initial condition, and then iterate from there.

Last edited:

- #5

EnumaElish

Science Advisor

Homework Helper

- 2,304

- 124

I think the OP is asking about a boundary problem, such that the solution is "fixed" not only at the initial point A but also at the "boundary point" B. Generally speaking there is no numerical "formula" to ensure that an initial point A(i) is going to yield the solution that also goes through B. A useful theorem states that the mapping of the initial points A(1), A(2), ... to the corresponding sequence of points B(1), B(2), ... near B is continuous, so you should be able to approximate B to a high degree of precision by trying out different values of A. Also, if your diff. eq. is not singular at B then you can try a backward solution from B to A.

Last edited:

- Last Post

- Replies
- 1

- Views
- 6K

- Last Post

- Replies
- 16

- Views
- 1K

- Last Post

- Replies
- 7

- Views
- 2K

- Last Post

- Replies
- 5

- Views
- 6K

- Last Post

- Replies
- 6

- Views
- 19K

- Last Post

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 7

- Views
- 845

- Last Post

- Replies
- 3

- Views
- 706

- Last Post

- Replies
- 5

- Views
- 3K

- Last Post

- Replies
- 1

- Views
- 4K