expr: cos(phi) + sin(phi);
subst([cos(phi)=x, sin(phi)=y], expr);
Maxima: how to replace cos(phi) with x
-
01-06-2022 - |
Question
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
?
Solution
OTHER TIPS
Or just
(%i1) cos(phi) + sin(phi), cos(phi) = x, sin(phi) = y;
(%o1) y + x
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow