You could, of course, use the function evalevalExpression within a loop
and evaluate expr twenty-one times, but this would be quite slow. A
better way is to create a numerical function f such that f(x) is defined
by the expression expr above, but without retyping expr! The package
MakeFunction provides the operation functionfunctionMakeFunction which
does exactly this.