What is the best way to write a symbolic expression to a txt file (so that I can use the symbolic expression after reading the txt file)?
Is there a sympy equivalent of numpy's savetxt() function for example?
for example:
from sympy import Symbol
a=Symbol('a')
b=Symbol('b')
y=a+3*b
How can I properly write and read y?
pickle
chokes on many SymPy expressions.dill
does a better job. – Welltimed