I have to fit some data to the function f(x) = f(0)cos^nx
Below are a few of the lines of code I\'ve written but it gives me a recursion depth limit exceeded