{"shas":[["8e0956bdd7cf7c6b27afe80b913f80d669338c0f","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923 count_ops modifications\n\nThis function has good utility for quantifying how large\nan expression is, and it's faster than calculating and\ncomparing the string length of two expressions.\n\nNOTES:\n\no It has been changed so a count (as implied by the name)\n  is the default returned; the symbolic flag has been\n  RENAMED to visual in keeping with the 'visual' flag\n  used for factorint.\n\no An int is now returned by default. If you want to do calculations\n  with the result, don't forget to sympify them if necessary:\n\nThese modifications were initiated by Chris Smith and heavily advised\nby Nicolas Pourcelot.\n\ndoctests fixed by making sure that each code snippet is followed by\na blank line:\n\n   This is ok:\n      >>> print x\n      x\n\n   This is not:\n      >>> print x\n      x\n   because a blank line should be here.","Chris Smith"],["8dc7a63cf0c07e18f9a11a29f677e089e4bba993","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923a: allow any iterable to be traversed","Chris Smith"],["98bc4b253af051ea1da4257fd34938985998f146","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923b: all visual args and LatticeOp count\n\n    And(x, y, z) return 2 (or 2*AND) because And is applied twice\n\n    In addition, atoms return 0 or S.Zero depending on teh visual\n    flag.\n\n    visual flags that were still 'symbolic' were changed to 'visual'.","Chris Smith"],["3eb95cea5603ff6e654d8a12cfcf8733262ea89e","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923c: all visual=False and Rationals considered\n\n    a method was given to rationals so that negated and fractions\n    increase the undesignated sum (i.e. -2/3 just adds +2 to the\n    count. See tests.","Chris Smith"],["8ad4b6f779fbc080d303e5ac30198c3d2840dbf3","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923d count_ops in one place","Chris Smith"],["4f3993a05d0f8d27fa57b9d9d6a79324552f745a","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","count_ops has quick option\n\n    The default behavior of count_ops is to provide an integer\n    metric that correlates with the complexity of the expression.\n    If visual=True then an expression showing the operations will\n    be returned; if visual=False then the corresonding sum of the\n    coefficients is returned. The default is to give the tree\n    length of the expression, correcting for Rationals that maybe\n    negative:\n\n    >>> count_ops(3+2*x*y, visual=True)\n    Add + 2*Mul\n    >>> count_ops(3+2*x*y, visual=False)\n    3\n    >>> count_ops(3+2*x*y, visual=None) # default\n    6","Chris Smith"],["0560f2abf2a23587c3c51b3fa2b5d4e96134388a","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923: correct tree for -1","Chris Smith"],["9eb9623d9ced5fab89b43444ea3d652c7245888c","b274abc493535ae88cb3a0742f63e38c9241d67c@gmail.com","1923 simplified","Chris Smith"]],"repo":"smichr/sympy","actor":"smichr","ref":"refs/heads/1923","size":8,"head":"9eb9623d9ced5fab89b43444ea3d652c7245888c","actor_gravatar":"61e106a28e171b4407171702b182759f","push_id":26524008}