Suppose I have an expression that I want to symbolically differentiate using the Calculus package, and then create a function in Julia evaluating this expression at a given value of the variable x. For instance,
Try f = eval(:(x->$expression_f)). That creates a function expression containing the expression to evaluate, so that x is bound within the expression. Then the function expression is evaluated, producing a function object you can call.