[sage-support] factor((A-B)*(B-C)).list() ?

2023-10-23 Thread Rolandb
Hi, I am surprised by the output (9.8 and 10.1 Ubuntu): var('A,B,C') factor((A-B)*(B-C)).list() var('A,B,C') factor((A-B)*(B-C)).list() var('A,B,C') factor((A-B)*(B-C)).list() [-B^2 + B*C, B - C] I expected [B - A, B - C]. Any explanation? Kind regards, Roland -- You received th

[sage-support] .factor() output consistent?

2011-05-01 Thread Rolandb
Hi, look at the following example: sage: R.=QQ[] sage: list((A^2+B).factor()+(B^2).factor()) [(1, A^2), (1, B^2), (1, B)] sage: list((A^2+B).factor())+list((B^2).factor()) [(A^2 + B, 1), (B, 2)] Is the first result what I could (should) expect? (tested via KAIST, version 4.6.1) Roland -- To po

[sage-support] factor() behaving badly

2010-12-19 Thread Alex Raichev
Hi all: I get differently formatted answers using factor() multiple times on the same polynomial. I wouldn't call it a bug, but it sure is annoying when doctesting. Alex -- | Sage Version 4.6, Release Date: 2010-10-30

[sage-support] factor

2009-06-15 Thread Mikie
Is there anyway to get the factor function to factor an expression without using QQ['x'].0? I want just integer factors. I have created a Twisted server using Sage to do calculations from a form. When I put QQ['x'].0 into the sage script I get a systax on the period. It does work from the comman