Suppose I have a set of data points like this:
1;1
2;4
3;9
4;16
5;25
6;36
...
The first column is the input of the function and the second one is the result. I can tell if I look at it that the function here is y = f(x^2). The problem is that the data points are not always this obvious and I want to write a program which can tell me the definition of the function.
How can I do so?
Some context: I'm trying to write a program which can be used to analyze asymptotic time complexity of algorithms. So in fact I'm only interested in a predefined set of functions:
y = f(n)
y = f(log(n))
y = f(n * log(n))
y = f(n ^ m)
y = f(2 ^ n)
