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

Hi!
I'm using Cadabra 2.2.1 (build 1842.0731b9dae6 dated 2018-08-14 on MacOS HighSierra) and it seems that the algorithm numberofterms is not defined.

Has it been deprecated in the v2?

Thank you!

asked in General questions by (160 points)

1 Answer

+2 votes

Yes, use standard Python len:

ex:=A+B+C;
len(ex);

shows '3'.

answered by (37.9k points)

Perfect, thank you!

...