Hi Folks,
I know that the following code works
sub1 := {A_{x} -> Ax, A_{y} ->Ay, A_{z} -> Az};
sub2 := {B_{x} -> Bx, B_{y} ->By, B_{z} -> Bz};
foo := A_{a} B_{b};
evaluate (foo, sub1+sub2);
Is there a simple way to create a third rule such as
sub3 := sub1 + sub2;
so that I can use
evaluate (foo, sub3);
I know that this doesn't work but I'm wondering if there a correct way to construct sub3 from sub1 and sub2?
I'm asking this because I have some code that uses many many sub rules and my evaluate line is getting exceedingly long.
Cheers,
Leo