Re:

2 views
Skip to first unread message

Soroosh Yazdani

unread,
Dec 3, 2006, 6:59:33 PM12/3/06
to can...@berkeley.edu, math128a...@groups.l.google.com
OK, your euler code is correct. However, your function should take a
vector and return a vector. Trying modifyind this function to
Runge-Kutta instead. Actually, it is even better if you pass the
function F and initial condition alpha as an input as well. That's what
Euler.m is supposed to do. Start from here, and modify it for
Runge-Kutta.

Also, regarding your question: What we want you to do is to compare
w_N when y(0)=[0,1,0], and w_N when y(0)=[0,1+e,0], say [0,.9,0],
or [0,0.99,0]. Is the change small, or large? Does w_N, as a function of
alpha, act like a continuous function? What if you increase the number
of steps? These are the questions that you want to answer.

Soroosh
On Sat, 2006-12-02 at 19:43 -0800, can...@berkeley.edu wrote:
> this is my code of Euler
> tell me how to use RK, BC i tryed it but no work
> i have another question:
> what does this mean?
> how much di erence this makes in the nal value of y(100).
> How can i get y(100)??

odeEuler.m
Euler.m
Reply all
Reply to author
Forward
0 new messages