First time here? Check out the FAQ!
answered 2021-08-29 15:53:33 +0100
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