I have an expression cos(phi) + sin(phi). How can I convert this expression it to x+y with maxima, assuming that cos(phi) is x, and sin(phi) is y?
cos(phi) + sin(phi)
x+y
cos(phi) is x
sin(phi) is y
expr: cos(phi) + sin(phi); subst([cos(phi)=x, sin(phi)=y], expr);