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 number_of_terms is not defined.

Has it been deprecated in the v2?

Thank you!

in General questions by (250 points)

1 Answer

+2 votes

Yes, use standard Python len:

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

shows '3'.

by (76.6k points)

Perfect, thank you!

...