| 1 | initial version |
You expect ex.operands() to give the sum terms, which works because they are mostly sums, but the first expression is a fraction. I don't think there is a function that always gives you sum terms, you would have to write one.
Also, since operands() expects an expression you must convert the Python 1 via SR. Expecting everything having a symbolic meaning will not work with Sage.
| 2 | No.2 Revision |
You expect ex.operands() to give the sum terms, which works because they are mostly sums, but the first expression is a fraction. I don't think there is a function that always gives you sum terms, you would have to write one.
Also, since operands() expects an expression you must convert the Python 1 via SR. Expecting Treating everything having to have a symbolic meaning will not work with Sage.
| 3 | No.3 Revision |
You expect ex.operands() to give the sum terms, which works because they are mostly sums, but the first expression is a fraction. fraction (1/(1-x) = Sum(x^j,0,inf)). I don't think there is a function that always gives you sum terms, you would have to write one.
Also, since operands() expects an expression you must convert the Python 1 via SR. Treating everything to have a symbolic meaning will not work with Sage.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.