Modeling complex functions with artificial neural networks