سؤال

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