I have included 8 unit test cases for functions used in task1 and task2. This unit test cases are for following functions:
simpson
trapezoid
adaptive trapezoid
root simple
root bisection
root secant
root tangent
root print header
I tried for root print step and root max steps, but multiple assertion issues arose so I am leaving them as comment there. Also, I think that in the class, we are told to do unit tests for any two functions from task 2. So, I guess I did my task under task 3
I have included 8 unit test cases for functions used in task1 and task2. This unit test cases are for following functions:
I tried for root print step and root max steps, but multiple assertion issues arose so I am leaving them as comment there. Also, I think that in the class, we are told to do unit tests for any two functions from task 2. So, I guess I did my task under task 3