Re: [sage-support] Re: p.collect(x).collect(y) only collects y

2018-08-19 Thread Robert Webb Jr
Hi, Dima; thanks for taking the time to help out a noob -- again. This is what I did: sage: a,b,y,z=var('a,b,y,z') sage: p=z*x^2+x^2-(x^2+y^2)*(a*x-2*b*y)+z*y^2+y^2 sage: type(p) The book says that I should be able to do this: sage: p.collect(x).collect(y) And get this in return: sage:

[sage-support] Re: p.collect(x).collect(y) only collects y

2018-08-19 Thread Dima Pasechnik
how is p created? what is the output of type(p) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this

[sage-support] Re: p.collect(x).collect(y) only collects y

2018-08-19 Thread rob . webb . jr
I'm using a Ubuntu 18.04.1 LTS, currently with Xfce4, but also Lxde, on a Dell G7 with i7-8750H cpu and 16 gb of ram, and I built Sage version 8.3 from source. The text I'm working from say that I should get this result: sage: p.collect(x).collect(y) sage: 2*b*y*x^2 +

[sage-support] Re: Sage 8.3 Build Fails on Debian Sid

2018-08-19 Thread Dima Pasechnik
seems like we look at a tip of py2/3 string/unicode iceberg mess... :-) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sage-support] p.collect(x).collect(y) only collects y

2018-08-19 Thread rob . webb . jr
Hi. I'm using this polynomial: p = z*x^2 + x^2 − (x^2 + y^2 )*(a*x − 2*b*y) + z*y^2 + y^2 and when I issue this command: p.collect(x).collect(y) to Sage 8.3 in the terminal, I get this response: -a*x^3 + 2*b*x^2*y + 2*b*y^3 - (a*x - z - 1)*y^2 + x^2*z + x^2 Notice that only y is collected.

[sage-support] Re: Sage 8.3 Build Fails on Debian Sid

2018-08-19 Thread Volker Braun
IMHO thats a bug that we should report to pip upstream... can you do that with your distribution details? On Saturday, August 18, 2018 at 9:15:04 PM UTC+2, Luis Finotti wrote: > > > > On Saturday, August 18, 2018 at 4:58:39 AM UTC-4, Volker Braun wrote: >> >> pip chokes on parsing