It would be helpful to have a little more information here. Can you assume that the output is a linear combination of inputs? If so, then a linear system such as you suggest would work. (You'd want to test your model to make sure it works, once you have it all done. That is, compare your theoretical model with the output of the existing program and see if they're the same.) Do you have any other information as to what this function is computing?