I'm using CasADi symbolic framework to study a Robotics problem. Since my symbolic equations are very long, I decided to export them to Mathematica in order to simplify them. The problem is that when I use the command
with open("dyn_eq.txt", "w") as eq:
print>>eq, f_x
to write these equations on a text file, Python cut them (because they are too long) using three dots
+(-0.4726*sin((x_0+x_1))))+...)*...))-...))))*...))*...)+...)+...))))+...)]
and Mathematica can't read them obviously.
Am I using the wrong command? Is there a way to avoid Python from cutting these expressions?