Euler's method numerical solution of a simple ODE: dy/dx=2x.

An Introduction to Computer Simulation Methods
Chapter 2: Creating Simulations

We introduce Easy Java Simulations (EJS) in the context of simulating the motion of falling particles near the Earth's surface using common Java syntax and EJS user interface elements. A simple algorithm for solving first-order differential equations numerically also is discussed.

 

Chapter 2 PDF

Models

The following EJS models are described in Chapter 2 of the EJS adaptation of An Introduction to Computer Simulation Methods.