First time here? Check out the FAQ!
answered 2013-09-01 23:23:25 +0100
You should be able to just check if it has no variables.
def is_numerically_evaluable(expr): return not expr.variables()
Then:
sage: is_numerically_evaluable(sin(1)) True sage: is_numerically_evaluable(x) False