Comment #30 on issue 1923 by nicolas.pourcelot: count_ops doesn't return a
count (by default)
http://code.google.com/p/sympy/issues/detail?id=1923
Using ./bin/doctest doesn't change anything.
However, I discovered this is linked to extra-indentation in count_ops()
docstring:
def count_ops(expr, visual=False):
""" Return the number of operations in expr.
If expr is an iterable, the sum of the op counts of the
items will be returned.
If `visual` is True then the number of each type of operation
is shown with the core class types multiplied by the number of
times they occur. Other objects (like cos()) are just tallied
and presented as a constant.
Examples:
>>> from sympy.abc import a, b, xw
>>> from sympy import sinw
There are two Adds and a Pow:
>>> (1 + a + b**2).count_ops(visual=True)w
POW + 2*ADD
etc.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.