cadabra2 icon indicating copy to clipboard operation
cadabra2 copied to clipboard

Evaluation rules with component nodes fail

Open kpeeters opened this issue 7 years ago • 0 comments

Expressions of the form 'tensor = components expression' should be valid substitution rules for evaluate, but they do not produce the right tree structure:

{r,t}::Coordinate.
{m,n}::Indices(values={t,r}, position=fixed).
ex:= A_{m} = A_{m};
rl:= A_{t} = 3;
evaluate(ex, rl, rhsonly=True, simplify=True)
ex2:= A_{m};
evaluate(ex2, ex);

All examples avoid this by doing a substitute rather than an evaluate, but this should nevertheless be fixed.

kpeeters avatar Apr 08 '18 17:04 kpeeters