Question: Finding indeterminates of an expression. Problem with keyword undefined.


I would like to find the indeterminates of the following expression:

K:=2*x+I*y/Pi+Catalan*5-g(infinity)+f(undefined);

# I expect to get x an y.

indets(K,And(name,Not(constant)));
# answer: {x, y, undefined} I surprised at undefined.

indets(K,'name &under evalf');
#answer {x, y} it is correct.

Please Wait...