Sorry for the newbie question but I have not found the answer elsewhere so far.
Say we have a symbol and we multiply it by the float number one:
import sympy
x = sympy.Symbol('x')
x = 1.0 * x
All the expressions that contain this x will also contain factor one whatever I do:
from pprint import pprint
pprint(x)
pprint(sympy.simplify(x))
Output:
1.0⋅x
1.0⋅x
In the example above, I want to output x instead of 1.0⋅x. Is it possible to simplify the expression in the way that it solves all multiplications by a float number one? Should I transform this float number to another datatype?