In #2028, the following issue is brought up: sage: a=x^1 sage: a.factor_list() [(x, 1)] sage: type(a.factor_list()[0][1]) <type 'int'> sage: a=x^2 sage: a.factor_list() [(x, 2)] sage: type(a.factor_list()[0][1]) <class 'sage.calculus.calculus.SymbolicConstant'>
Basically, the factoring routine differentiates between a power of 1 and any other power and returns an int or a SymbolicConstant. Is there a reason why we shouldn't return the integer 2 in the second case instead of a SymbolicConstant expression representing 2? Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---