Skip to content

This project is a simple Java program that solves first-order differential equations using Euler's Method.

Notifications You must be signed in to change notification settings

yunxianding/MTH112-ArtProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

MTH112-ArtProject ✨

Arthor-Yunxian Ding

Overview ⚙️

  • 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!😄

Files 📂

  • EulerCalculator.java represents a class of calculator that use Euler's method to approximate solutions.
  • Main.java provides a console interface for user input.
  • README.md provides description about the project.

How It Works 🖥️

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:

  1. Prompts the user to enter initial values (x₀, y₀), a final x-value (x_f), and the number of steps.
  2. Calculates the approximate value of y at x = x_f using Euler's method.
  3. Displays a description and the final result.

Notes 📝

  • The program currently only supports the differential equation dy/dx = x + y.
  • User input must be valid numbers.

About

This project is a simple Java program that solves first-order differential equations using Euler's Method.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages