- This project is a simple Java program that solves first-order differential equations using Euler's Method.
- I created it for personal use for MTH112 course at Smith College.
- It explores the connection between calculus and computer programming.
- Feel free to fork and make your own version.
- Please consider give a star if you like it!😄
EulerCalculator.javarepresents a class of calculator that use Euler's method to approximate solutions.Main.javaprovides a console interface for user input.README.mdprovides description about the project.
Euler's method approximates the solution to a first-order differential equation using the formula:
delta_y = (dy/dx) * delta_x
In this project, the differential equation is:
dy/dx = x + y
The program:
- Prompts the user to enter initial values (
x₀,y₀), a final x-value (x_f), and the number of steps. - Calculates the approximate value of
yatx = x_fusing Euler's method. - Displays a description and the final result.
- The program currently only supports the differential equation
dy/dx = x + y. - User input must be valid numbers.