Re: [sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
oh, I see. Tricky one. On Wednesday, May 25, 2016 at 5:24:48 PM UTC+2, vdelecroix wrote: > > On 25/05/16 10:11, Pierre wrote: > > By that reasoning, you should expect libgap lists to start with 1, as in > a > > GAP console, but they start with 0 as python lists (and i think it's > GREAT > > :

[sage-support] Abstract tensor manipulation in Sage Manifold

2016-05-25 Thread Zach Elgood
I recently started using Sage Manifolds, and was wondering if it was possible to define tensor expression independent of basis. For example, I am working with some quantum field theory, and am trying to define the following tensor U_mu=partial_mu (psi)/(sqrt(partial_nu(psi) nabla^nu (psi)) whe

[sage-support] Re: Building Sage 7.2 from source: Error installing package gcc-4.9.3.p1

2016-05-25 Thread Volker Braun
You need the Xcode command line tools On Wednesday, May 25, 2016 at 6:09:58 PM UTC+2, paulmasson wrote: > > Running OS X El Capitan 10.11.15 on a year-old Macbook Pro. > > Logs attached. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsu

[sage-support] Lovasz theta with vertex weights

2016-05-25 Thread pevdecorte
The Sage graph class comes equipped with a method which computes the Lovasz theta-function. Is there also a version that works with weights on the vertices? Evan -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group a

Re: [sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Vincent Delecroix
On 25/05/16 10:11, Pierre wrote: By that reasoning, you should expect libgap lists to start with 1, as in a GAP console, but they start with 0 as python lists (and i think it's GREAT : with the old pexpect interface, the lists starting with 1 used to create a lot of trouble). I'm pretty sure the

Re: [sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
By that reasoning, you should expect libgap lists to start with 1, as in a GAP console, but they start with 0 as python lists (and i think it's GREAT : with the old pexpect interface, the lists starting with 1 used to create a lot of trouble). I'm pretty sure the idea was to have libgap lists b

Re: [sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-25 Thread Michael Orlitzky
On 05/24/2016 10:14 PM, Vincent Delecroix wrote: >> >> What about sqrt(2*x^16 + 10*x^11 - 9*x^10 + x^7 + x^4 - 17*x^2 - x)? >> > > What is the problem with this expression? It is very easy to decide the > sign of any polynomial expression in one variable on any given interval. But how much comput

Re: [sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Vincent Delecroix
Hello Pierre, You should not expect libgap lists to behave the same as Python list since in a gap console addition is addition of vectors! gap> [0,1] + [1,3]; [ 1, 4 ] gap> [0,1,5] + [1,3]; [ 1, 4, 5 ] gap> Concatenation([0,1], [0,3]); [ 0, 1, 0, 3 ] And in Sage sage: l1 = libgap([0,1]) sage

[sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
PS on another example, using + on two GAP lists of length 2 and 6 respectively has produced a list of length 6, and I think it contains sums of elements taken from the lists, somehow. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscr

[sage-support] libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
Hi, This is on SMC. I think the following used to work (?), but I may be wrong. sage: G= libgap.SymmetricGroup(3) sage: foo= G.GeneratorsOfGroup() sage: foo + foo ... ValueError: libGAP: Error, no method found! Error, no 1st choice method found for `+' on 2 arguments One may try list(foo) + l

[sage-support] Re: http://doc.sagemath.org/html/en/reference/power_series/sage/rings/power_series_ring.html

2016-05-25 Thread Nils Bruin
On Wednesday, May 25, 2016 at 6:00:19 AM UTC-7, kbriggs wrote: > > At > http://doc.sagemath.org/html/en/reference/power_series/sage/rings/power_series_ring.html, > > where is it documented how and where ZZ, QQ, CC etc. are defined? If I > search for these, nothing shows up. The base_ring has

Re: [sage-support] query on PowerSeriesRing(CC)

2016-05-25 Thread kbriggs
Thanks and sorry - yes, I realized my mistake, K On Wednesday, 25 May 2016 15:03:35 UTC+1, John Cremona wrote: > > R.gen() is z, not the square root of minus 1, so your f is 4*z^2. > > With I = CC.gen() you get > > sage: print(f.dict()) > {1: 2.00*I, 2: 2.00} > > > On 2

Re: [sage-support] query on PowerSeriesRing(CC)

2016-05-25 Thread kbriggs
On Wednesday, 25 May 2016 15:34:30 UTC+1, kbriggs wrote: > > Thanks and sorry - yes, I realized my mistake, > K > > On Wednesday, 25 May 2016 15:03:35 UTC+1, John Cremona wrote: >> >> R.gen() is z, not the square root of minus 1, so your f is 4*z^2. >> >> With I = CC.gen() you get >> >> sage: p

Re: [sage-support] query on PowerSeriesRing(CC)

2016-05-25 Thread John Cremona
R.gen() is z, not the square root of minus 1, so your f is 4*z^2. With I = CC.gen() you get sage: print(f.dict()) {1: 2.00*I, 2: 2.00} On 25 May 2016 at 14:13, wrote: > Why do I get this? > > > R.=PowerSeriesRing(CC) > > I=R.gen() > f=2*I*z+2*z^2 > > print(f.dict()) >

[sage-support] query on PowerSeriesRing(CC)

2016-05-25 Thread keith.briggs
Why do I get this? R.=PowerSeriesRing(CC) I=R.gen() f=2*I*z+2*z^2 print(f.dict()) > {2: 4.00} Thanks, Keith -- 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, s

[sage-support] http://doc.sagemath.org/html/en/reference/power_series/sage/rings/power_series_ring.html

2016-05-25 Thread keith.briggs
At http://doc.sagemath.org/html/en/reference/power_series/sage/rings/power_series_ring.html, where is it documented how and where ZZ, QQ, CC etc. are defined? If I search for these, nothing shows up. The base_ring has to be a commutative ring, but these are elsewhere in the docs called Z, Q,