Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

I have problems varying a single monomial, see for instance

obj:= x_{m};
vary(obj, $x_{m} -> something$);

that gives error. Cadabra complains that it is not know how to vary that.

I currently circumvent this by using a dummy:

obj:= x_{m}\xi;
vary(obj, $x_{m} -> something$);

and then replacing $\xi\rightarrow1$. Is there a better way to do this ?

in General questions by (270 points)

1 Answer

+2 votes

It's a bug, sorry (none of my test cases had such simple expressions :-( ). I have filed it as https://github.com/kpeeters/cadabra2/issues/57

by (80.3k points)
...