Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

can someone make a program that evaluates (x` = 1 + x**2 ) by Eulars method,,, and Eulars midpoint method can someone make a program that evaluates (x` = 1 + x**2 ) by Eulars method,,, and Eulars midpoint method @Computer Science

OpenStudy (anonymous):

what is x`?

OpenStudy (anonymous):

oh euler's method? ... I haven't read on that yet, but try using MATLAB, or Python, or any programming language.

OpenStudy (anonymous):

def eulermethod(x) return 1 + x**2

OpenStudy (anonymous):

can you do it in python

OpenStudy (anonymous):

x` is the derivative of x,,( dt/dx)

OpenStudy (anonymous):

eulermethod = lambda x: x**2 + 1

OpenStudy (anonymous):

I coded this snippet: http://codepad.org/lF4ZleA7 using Euler's Method, but it's still far off actual values for the ODE (but there are also blatantly obvious ways to improve my code). Hope it will be a bit helpful. As a side note, use pylab to plot the graphs, if you need. Makes the visualization clearer and more intuitive.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!