Documentation
Input
Choose Method:
1. Bisection Method
2. Regula-Falsi Method
3. Newton-Raphson Method
Enter choice: 1
Enter initial guesses a and b: 1 2
Output
Root by Bisection Method = 1.52138
✔ Bisection Method
✔ Regula–Falsi (False Position) Method
✔ Newton–Raphson Method
Problem Assumption
Let the equation be:
f(x)=x3−x−2
(This equation has a real root near x ≈ 1.52)