Here, Code of Eular Method of Computer Oriented Numerical Methods in Java Language. The Euler method algorithm is a numerical method which is used to solve the first order differential equation of the form y’ = f(x,y) where ‘x’ represents the independent variable and ‘y’ represents the dependent variable.
Eular Method
A University Assignment. Clearly Used to Solve anhy Porblem and Perform Computer Oriented Prolblems .
-
Start
-
Define function f(x,y)
-
Read values of initial condition(x0 and y0), number of steps (n) and calculation point (xn)
-
Calculate step size (h) = (xn - x0)/b
-
Set i=0
-
Loop
yn = y0 + h * f(x0 + i*h, y0)
y0 = yn
i = i + 1
While i < n
-
Display yn as result
-
Stop
Provide an overview of the directory structure and files, for example:
├── README.md ├── out ├── Eular_Method.iml ├── .idea │ ├── misc.xml │ ├── modules.xml | ├── vcs.xml │ └── workspace.xml └── src ├── Eular_Method.java
Referenced from Computer oriented Numerical Method Book By Rajaraman and our Faculty Dr. Shaligram Prajapat.
You can say it has been part of a class you've taken at International Institute of Professional Studies, Indore.