If we have a data set of different values and we would like to derive a formula that is almost working with all of them. For example f(x) = x^2 or similar. Can this be done using neural networks. Through what I know, neural networks will produce output after performing computation by the hidden layers, but is it possible to use ANN to get an explicit candidate formula? What about genetic programming and/or genetic algorithms? Are there other heuristics or models used to reason and/or derive mathematical (or logical) expressions from data sets?