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

The v1 syntax for commands, e.g.

@substitute!(%)( rule )

does not work in Cadabra2. Agree ? A working syntax is certainly

substitute(_, $rule$)

Is there a way to use the previous syntax and the advantage of the "!!" specification ? In general, is there a document illustrating v2 ?

in General questions by (270 points)

1 Answer

+2 votes

Yes, the syntax has changed because you can now mix cadabra with python in one notebook. What used to be "!!" is now the repeat=True flag, so

substitute(_, rule, repeat=True);

Look around the tutorials to see examples of other things you can do. I hope to have a new proper manual out sometime this fall.

by (83.1k points)
...