0

I would like to make a simple replacement or substitution: y=a+b a=2d+e b=f+g How make Wolfram-Mathematica automatically show and make the substitution or replacement of variables a and b an show this result: y=2d+e + f+g

?

Gustavomcls
  • 1,655
  • 2
  • 12
  • 20

1 Answers1

1

Try

y==a+b/.{a->2d+e,b->f+g}

and see if that is what you are looking for.

That takes the expression y==a+b and does the list of substitutions to it

Bill
  • 3,664
  • 1
  • 12
  • 9