Hi Eureka.
Firstly, let me point that a semi-colon is missing at the en d of the third line. So, the correct code should be
{a,b}::Indices(vector).
\delta{#}::Accent.
ex := \delta{A^{a b}+B^{a b}};
Then, let me clarify that (to my understanding) accents are a way to differentiate symbols, i.e. it has no further properties. Why is this important? Perhaps your expression should be written as
ex := \delta{A}^{a b} + \delta{B}^{a b};
If you are expect your accent to have linearity property, give assign the property of Derivative
, i.e.
\delta{#}::Derivative.
If you use the Derivative
property instead of the Accent
, you could apply the distribute
algorithm in your original expression
{a,b}::Indices(vector).
\delta{#}::Derivative.
ex:=\delta{A^{a b}+B^{a b}};
distribute(ex);
Cheers,
Dox.