Rashid Valiev
Rashid Valiev

Reputation: 43

Maple: simplification expression with some assumption

I need to to some transformation of expression. I have W:=ax+by+cz. Now I want to set ax=0.5x, by=-0.5*x. After that I need to get W. Can I do it using Maple?

Upvotes: 0

Views: 72

Answers (1)

acer
acer

Reputation: 7271

Here are two ways to handle your example,

W := a*x+b*y+c*z:

eval(W, [a*x=0.5*x, b*y=-0.5*x]);

       c z

simplify(W, [a*x=0.5*x, b*y=-0.5*x]);

       c z

Note that your syntax is unclear. I can't tell whether you have the names ax and by or the products a*x and b*y.

Upvotes: 1

Related Questions