class SymbolTrick(NumberSymbol):

    def __new__(self, name):
        obj = NumberSymbol.__new__(self)
obj._name = name
return obj
_as_mpf_val = pi._as_mpf_val
Define a variable in sympy to be a CONSTANT