I have a family of functions, each of which takes a long time to build the expression. Once the functional form is determined, however, calculations are very fast. So I want to build a table of functions programatically. Something like:
exprList = Table[buildExpr[a, b, x], {a, 1, 5}, {b, 1, 100}]
exprFunc[a_, b_, x_] := Evaluate[exprList[[a, b]]]
However, the above throws a Part error, saying I can't use a
and b
in Part in a function. I've tried various other things from related questions on the internet, but still no luck.