문제

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?

도움이 되었습니까?

해결책

expr: cos(phi) + sin(phi);
subst([cos(phi)=x, sin(phi)=y], expr);

다른 팁

Or just

(%i1) cos(phi) + sin(phi), cos(phi) = x, sin(phi) = y;
(%o1) y + x
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top