I need to write a class that includes a bisection and newton function. I understand how each method works, I just need to know how to write a class that passes the parameters of each function correctly.
Parameters:
Bisection
- The function you're finding the root of
- the starting interval (a,b)
- the absolute tolerance
- the relative tolerance
Newton
- the function
- derivative of the function
- initial value
- absolute tolerance
- relative tolerance