Create a program to implement the Newton-Raphson method for finding roots of a function.
HardProblem Statement
Create a program to implement the Newton-Raphson method for finding roots of a function.
Sample Input
Function: f(x) = x^3 - 2x - 5 Derivative: f'(x) = 3x^2 - 2 Initial Guess: x0 = 2
Sample Output
Root: 2.0946
Limits
Time: 2s · Memory: 256 MB