3 years, 24 days

## Storing Lots of Variables and Evaluating...

Maple 2018

I currently have a procedure that runs a fairly complicated formula involving non-commutative variables. The procedure is Vu(a, b, c) where a, b, and c are any integers. I have to run this formula whenever vacub appears in my expression. I'm currently replacing each variable of this type with the procedure Vu(a, b, c). I'm wanted to automate that process if possible. One thought I had was to assign the value of Vu(a, b, c) to the variable vacub for any value of a, b, and c from 1 to 5. Then use the eval command to replace the variables with the proper values. Is there any way to automate this process? Let me give you an example:

v0u0 = u0v0 + 2w0

So u0v0u0 = u0(u0v0+2w0) = u02v0+2u0w0

## Non-Commutative and Commutative Variable...

Maple

I'm working on a problem requiring non-commutative variables. I have this functionality working properly using the code below:

restart;
with(Physics);
Setup(noncommutativeprefix = {u, w, v});

My variables are subscripted as well. In other words, I'll be dealing with terms u0v0v1 . This all works properly under the above code. The only trouble I'm having is the terms such as v0, v1, ... , vn commutatve with each other (and likewise for the w and u). Is there a way to tell Maple that the individual u's, w's, and v's commuative with themselves?