If I have an equation in Mathematica, say
f=a*x+Exp[x]
is it possible to save only RHS of the equation into a text or mx file, so that later I can load it and assign it to some other variable? Save seems to save the whole thing. Thanks for any help in advance.
Put
and friends $\endgroup$ – Kuba♦ Nov 24 '16 at 11:28f == a*x + Exp[x]
. If you store this equation ing
withg = f == a*x + Exp[x]
, runningg[[2]]
returns the RHS of the equation. $\endgroup$ – Feyre Nov 24 '16 at 12:09