Re: [sage-support] Dependence set of a symbolic expression

2011-12-03 Thread Santanu Sarkar
Thankx a lot. On 2 December 2011 02:18, Laurent wrote: >> sage: x0,x1,x2,x3,x4,x5,x6,x7,x8,x9 = var('x0,x1,x2,x3,x4,x5,x6,x7,x8,x9') >> sage: S = 1*x1 + 2*x3 + 3*x4 + 4*x5 + 5*x7 + 6*x9 >> sage: S.variables() >> (x1, x3, x4, x5, x7, x9) > > > By the way : > > sage: x=var('x') > sage: S=sin(x)**2+

[sage-support] Re: matrix help

2011-12-03 Thread Chappman
Is it possible to make an entry in Q[i,j] equal to a entry in U[i,j]? I have to have the two functions separately for each matrix though just like my code above i.e. def U(N,M): ... ... ... return U def Q(N,M) ... ... ... Q[i,j]=U(N,M) return Q Kind Regards Chappman On Dec 3, 4:26 am, "D.

[sage-support] SageTeX, Numpy, and Verbatim Environment

2011-12-03 Thread Mark
I'm trying to represent Sage non-native elements in a LaTeX document using SageTeX. Sage generates the representation without complaint, but the result does not compile properly on the second LaTeX step (LaTeX-Sage-LaTeX*). Latex complains about missing $ inserted. I've included a simple illustr

Re: [sage-support] Re: Power series expansion

2011-12-03 Thread Anton Sherwood
On 2011-12-02 08:17, Julie wrote: Unfortunately, having the Tayor series approach out, don't think it's really appropriate for my problem afterall, as what I esentially need to do is find the coefficientsof p^0*y^0, p, y, p^2*y etc in the formula (0.030*0.248244^y)y+0.05721*(0.248244^y)p +0.08838

Re: [sage-support] Re: matrix help

2011-12-03 Thread Justin C. Walker
On Dec 3, 2011, at 02:50 , Chappman wrote: > Is it possible to make an entry in Q[i,j] equal to a entry in U[i,j]? > I have to have the two functions separately for each matrix though > just like my code above Definitely. You can do it roughly as your code snippets show, or there are built-in

[sage-support] backend for matplotlib

2011-12-03 Thread Vasudev
I've installed sage from binaries for 64-bit for fedora , on my fedora 16 laptop , the default backend for matplotlib is set to be Agg , when i set GTKAgg it says i need pyGTK 2.4 or something , do i have to install those versions ?? don't tell me i need development versions of these libraries ,i a

[sage-support] Re: matrix help

2011-12-03 Thread Jason Grout
On 12/3/11 4:16 PM, Justin C. Walker wrote: Q=matrix(ZZ,6) U=Q U[1,1]=4 Q Uh, I thought you wanted to use copy, which actually does copy the matrix: sage: Q=matrix(ZZ,2) sage: U=copy(Q) sage: U[1,1]=4 sage: U [0 0] [0 4] sage: Q [0 0] [0 0] You don't need to use deepcopy to copy a matrix.

Re: [sage-support] Re: matrix help

2011-12-03 Thread Justin C. Walker
On Dec 3, 2011, at 15:21 , Jason Grout wrote: > On 12/3/11 4:16 PM, Justin C. Walker wrote: >> Q=matrix(ZZ,6) >> U=Q >> U[1,1]=4 >> Q > > > Uh, I thought you wanted to use copy, which actually does copy the matrix: > > > sage: Q=matrix(ZZ,2) > sage: U=copy(Q) > sage: U[1,1]=4 > sage: U > [0 0

[sage-support] computing the cup-product in the cohomology of a simplicial complex

2011-12-03 Thread Felix Breuer
Hello everyone! I would like to compute the cup-product of two chains in the cohomology of a simplicial complex. What I have so far, is that I have the simplicial complex realized as a SimplicialComplex in sage and I can compute its cohomology groups. They are: {0: 0, 1: Z x Z, 2: Z^28, 3: Z^9

Re: [sage-support] SageTeX, Numpy, and Verbatim Environment

2011-12-03 Thread Dan Drake
On Sat, 03 Dec 2011 at 09:16AM -0800, Mark wrote: > I'm trying to represent Sage non-native elements in a LaTeX document > using SageTeX. Sage generates the representation without complaint, > but the result does not compile properly on the second LaTeX step > (LaTeX-Sage-LaTeX*). Latex complains

[sage-support] Re: SageTeX, Numpy, and Verbatim Environment

2011-12-03 Thread Jason Grout
On 12/3/11 9:24 PM, Dan Drake wrote: On Sat, 03 Dec 2011 at 09:16AM -0800, Mark wrote: I'm trying to represent Sage non-native elements in a LaTeX document using SageTeX. Sage generates the representation without complaint, but the result does not compile properly on the second LaTeX step (LaTe

[sage-support] Re: computing the cup-product in the cohomology of a simplicial complex

2011-12-03 Thread John H Palmieri
On Saturday, December 3, 2011 6:15:03 PM UTC-8, Felix Breuer wrote: > > Hello everyone! > > I would like to compute the cup-product of two chains in the cohomology of > a simplicial complex. > Me too. > > What I have so far, is that I have the simplicial complex realized as a > SimplicialCo