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!
Yes, use standard Python len:
len
ex:=A+B+C; len(ex);
shows '3'.
Perfect, thank you!