Example: marketing
Numerical Methods for Differential Equations with Python
The equation can be approximated using the forward Euler as w i+1 w i h = sin(x i). Rearranging the equation gives the discrete difference equation with the unknowns on the left and the know values of the right w i+1 = w i +hsin(x i). The Python code bellow implements this difference equation. The output of the code is shown in Figure 1.1.1.
Download Numerical Methods for Differential Equations with Python
Information
Domain:
Source:
Link to this page: