Question: trying to write a program in python to solve the ordinary differential equation y' = y with initial data y(0) = 1 using eulers method.

trying to write a program in python to solve the ordinary differential equation y' = y with initial data y(0) = 1 using eulers method. here is what i have so far

trying to write a program in python to solve the ordinary differential

#dy/dx y def func(x, y): return (y) #euler method def euler (x0, y, h, x): temp0 while x x: temp y Yy+h* func (x0, Y) print (y) #initial data x=2 euler (x0, yo, h, x)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!