Extra credit on secant method

This is worth 5 test points.

We saw that in some sense the secant method which is less than quadratic can outperfrom newton's method, as it takes fewer function calls per step.

Implement both the secant method and Newton's method in a programming language of your choice.

Consider the function $f(x) = x^3 - 2x+5$.

Use Newton's method starting at $x_0=2$ and the secant method starting with $x_0=2, x_1=2.5$.