Skip to content

Repository files navigation

Numerical Methods Algorithms in Java

This repository contains Java implementations of fundamental numerical methods for solving nonlinear equations.
The project was developed as part of the Numerical Methods (Sayısal Analiz) course during my second year of Computer Engineering.

Each algorithm is implemented in a separate Java file and can be executed independently.


📌 Implemented Algorithms

Algorithm Description
Bisection Method Root finding by repeatedly dividing an interval in half.
False Position Method Root finding using linear interpolation between interval endpoints.
Newton-Raphson Method Root approximation using derivatives for faster convergence.
Fixed Point Iteration Solves equations through repeated function evaluation.

Features

  • Implemented using Java
  • Each algorithm is contained in its own Java file
  • Each file includes its own main() method
  • Console-based user input
  • Supports:
    • Initial guess or interval values
    • Tolerance (ε)
    • Maximum iterations
  • Displays the approximated root
  • Provides iteration details for convergence analysis

📂 Project Structure

Numerical-Methods/
│
├── Bisection.java
├── FalsePosition.java
├── NewtonRaphson.java
└── FixedPointIteration.java

🖥️ Example Output

Example output from the Newton-Raphson Method, showing the iteration process and convergence.

Newton-Raphson Output


▶️ How to Run

  1. Open the project using a Java IDE.
  2. Run the main() method of the desired algorithm.
  3. Enter the required inputs.
  4. View the calculated root and iteration results.

Technologies Used

  • Java
  • Object-Oriented Programming (OOP)
  • Numerical Analysis Algorithms

📖 Learning Outcomes

Through this project, I gained practical experience in:

  • Implementing numerical algorithms in Java
  • Understanding iterative methods and convergence
  • Working with tolerance and error calculations
  • Comparing different root-finding techniques

Author

Mohammed Alansary

Computer Engineering Student

Interested in Cybersecurity, Artificial Intelligence, and Software Development.

Releases

Packages

Contributors

Languages