This project applies numerical methods to find real roots of equations using both the Bisection Method and Newton's Method in MATLAB. It includes performance comparisons and visualizations of convergence speed across tolerances.
-
Bisection Method
Applies the Intermediate Value Theorem to iteratively narrow down an interval containing a root. -
Newton's Method
Uses derivatives to iteratively estimate root convergence via tangent lines.
- Comparison of convergence speed between Bisection and Newtonβs methods
- Visualization of:
- Cooling rate vs bar length (from root calculations)
- Iterations required vs tolerance (log-scale)
- Modular MATLAB functions with adjustable tolerances and ranges
- Root-finding for one-variable functions
- Convergence behavior and iteration count analysis
- MATLAB function handles (
@
), plotting, and iterative methods
- Open
Project2.m
in MATLAB - Ensure any function files (
Bis
,Newt
) are in the same folder - Run:
Project2