Ask Your Question

Revision history [back]

You should check their parent:

sage: g.parent()
Symbolic Ring

sage: f.parent()
Callable function ring with argument x

sage: f(x).parent()
Symbolic Ring