Here, we present the derivations based on the Forward Euler method to discretize the continuous time equations of the and neurons. The Forward Euler method is a simple numerical method to approximate solutions to the first order Ordinary Differential Equations (ODEs). Note that the equations of the (Eq (1)) and (Eq (3)) neurons are first order ODEs. Therefore, we can use the Forward Euler method to discretize and solve them numerically on our computers.
Forward Euler method¶
Consider
and an initial condition . In the Forward Euler method, a first order ODE is approximated (based on the forward difference derivative) as below:
where is a very small value, i.e., a very small change in time . Let us sample (defined over continuous time ) at discrete times , i.e., . In the spirit of this discretization, let us also assume that the difference between consecutive discrete time-steps (i.e., and ) is very small, i.e., let . Thus, the Eq (2) becomes the following:
For convenience, let us replace and with and respectively. Also, for practical purposes, let us replace ‘’ with ‘’, however, we should keep in mind that Forward Euler method is still an approximation and error grows with the value of as well as accumulates with every next time-step. Finally, rearranging the Eq (3) gives us the following:
We can use the formulation of the Eqs (4) or (3) to derive the discrete-time equations of the and neurons.
Discretizing neuron¶
The continuous-time equation of the neuron as mentioned in the Section 1.1.2.1 is:
To discretize it, let us consider , therefore, the Eq Equation to discretize becomes:
As can be easily seen, the Eq Equation is of the same form as Eq (1) above, thus, from Eq (4), we get the following discrete form of Eq Equation:
i.e.,
Note that in Eq Equation, denotes the difference between consecutive timesteps (as mentioned in Forward Euler method), therefore, let us assume the difference is 1 timestep, i.e., . Thus, setting in Eq Equation, we get the following:
which is a discrete-time equation of an neuron.
Discretizing neuron¶
The continuous-time equation of the neuron as mentioned in the Section 1.1.2.2 is:
which upon rearranging becomes:
Note that , therefore, Eq Equation becomes:
To discretize it, let us consider (same as for discretizing the neuron), and , therefore, the Eq Equation to discretize becomes:
As can be easily seen, Eq Equation is of the same form as Eq (1), thus, from Eq (4), we get the following discrete form of Eq Equation:
i.e.,
Note that in Eq Equation (similar to the case of discretizing the neuron), denotes the difference between consecutive timesteps, therefore, assuming in Eq Equation, we get the following:
which is the discrete-time equation of a neuron.
Cite this chapter
Gaurav, Ramashish; Pedersen, Jens Egholm; Bogdan, Petrut (2026). Point Neurons Discretization. In Practical Spiking Neural Networks. Version 0.8. Open Neuromorphic. https://snnbook.net/topics/a_point_neurons_discretization
@incollection{snnbook2026-point-neurons-discretization,
author = {Gaurav, Ramashish and Pedersen, Jens Egholm and Bogdan, Petrut},
title = {{Point Neurons Discretization}},
booktitle = {{Practical Spiking Neural Networks}},
publisher = {Open Neuromorphic},
year = {2026},
edition = {Version 0.8},
url = {https://snnbook.net/topics/a_point_neurons_discretization},
}