Opened 5 years ago

Last modified 5 years ago

#18081 new defect

Expression.factor_list() result inconsistent

Reported by: rws Owned by:
Priority: major Milestone: sage-6.6
Component: symbolics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by rws)

sage: (1-2^(-s)).factor_list()
[(2^s - 1, 1), (2^s, -1)]
sage: (1/(1-2^(-s))).factor_list()
[(2^s - 1, -1), (2, s)]

I would have expected the first expression to have (2, -s) or the second to have (2^s, 1). Also, this looks odd:

sage: (1/(1-x)).factor_list()
[(x - 1, -1), (-1, 1)]
sage: (1-x).factor_list()
[(-x + 1, 1)]

Change History (1)

comment:1 Changed 5 years ago by rws

  • Description modified (diff)
Note: See TracTickets for help on using tickets.