[sage-support] Re: Sage 4.0 can be installed on ubuntu 8.04?

2009-06-07 Thread Bruce Cohen
I installed this binary: sage-4.0-linux-Debian_GNU_Linux_4.0_etch-sse2-i686-Linux on my ubuntu 8.04 machine. It appears to work. -Bruce On Jun 6, 5:55 am, Hobus wrote: > Sage 4.0 can be installed on ubuntu 8.04? > > I had this error: > /home/jluxtux/sage-4.0-linux-Ubuntu_9.04-sse2-i686-Linux/l

[sage-support] Re: element-wise multiplication of matrices

2009-06-07 Thread Dan Drake
On Sun, 07 Jun 2009 at 11:12AM -0700, paramaniac wrote: > Is there a possibility/workaround in Sage to compute the element-wise > multiplication of two matrices? In Matlab there's the .* operator, but > Matlab is useless in my case since I need a symbolic result. There's no operator that I know of

[sage-support] element-wise multiplication of matrices

2009-06-07 Thread paramaniac
Dear Sage community, Is there a possibility/workaround in Sage to compute the element-wise multiplication of two matrices? In Matlab there's the .* operator, but Matlab is useless in my case since I need a symbolic result. Thanks in advance for every help Regards, Lukas EXAMPLE: sigma, tau, be

[sage-support] Issues with gcd

2009-06-07 Thread salte...@gmail.com
I am running into problems using the gcd function in sage. (version 3.4.2) Specifically, I am iterating over a set of integers [a,b,c,r,s,t] which I want to be coprime. I check this using gcd([a,b,c,r,s,t]). The problem is that it returns 1 for tuples that should not have gcd = 1. For example, fo

[sage-support] Re: substitute values into a muttivariate polynomial

2009-06-07 Thread Justin C. Walker
On Jun 7, 2009, at 15:53 , amps wrote: > > When I say that n is not predetermined, I mean that I want my script > to work for any n. So before I define the polynomial ring, n is > determined, but I want this to work for all n. So my question is how > do I do the following. > > n=6 > R=Polynomi

[sage-support] Re: substitute values into a muttivariate polynomial

2009-06-07 Thread Mike Hansen
This works: sage: n=6 sage: R=PolynomialRing(QQ,n,'z') sage: z=R.gens() sage: g=sum(z[i] for i in range(n)) sage: g.subs(dict((z[i], i) for i in range(n))) 15 --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsub

[sage-support] Re: substitute values into a muttivariate polynomial

2009-06-07 Thread Justin C. Walker
On Jun 7, 2009, at 15:23 , amps wrote: > > sorry, i meant > > g.subs({z[1]:value1...}) > > I am not sure why you call this intriguing syntax, but it is what > works. My turn to say sorry. I just mentally wiped out the '.subs' part. > My problem is that I don't know how to do this if the numbe

[sage-support] Re: substitute values into a muttivariate polynomial

2009-06-07 Thread amps
When I say that n is not predetermined, I mean that I want my script to work for any n. So before I define the polynomial ring, n is determined, but I want this to work for all n. So my question is how do I do the following. n=6 R=PolynomialRing(QQ,n,'z') z=R.gens() g=sum(z[i] for i in range(n)

[sage-support] Re: substitute values into a muttivariate polynomial

2009-06-07 Thread amps
sorry, i meant g.subs({z[1]:value1...}) I am not sure why you call this intriguing syntax, but it is what works. Example: g=x+y g.subs({x:2,y:4}) 6 My problem is that I don't know how to do this if the number of variables is not predetermined. I tried to make a list with a=list() for i in rang

[sage-support] Re: substitute values into a muttivariate polynomial

2009-06-07 Thread Justin C. Walker
On Jun 7, 2009, at 13:03 , amps wrote: > > I want to substitute n values into polynomial with n variables. > > I guess the syntax to do this is (if g is my polynomial with > indeterminates z[1], ..., z[n]). > > f.subs({z[1]:value1, z[2]:value2, ..., z[n]:valuen}) > > but how do I actually do thi

[sage-support] substitute values into a muttivariate polynomial

2009-06-07 Thread amps
I want to substitute n values into polynomial with n variables. I guess the syntax to do this is (if g is my polynomial with indeterminates z[1], ..., z[n]). f.subs({z[1]:value1, z[2]:value2, ..., z[n]:valuen}) but how do I actually do this? n is not set, so I just can't type this out. --~--~-

[sage-support] Re: derivative bug in Sage 4.0 symbolics?

2009-06-07 Thread Burcin Erocal
Hi Alex, On Sun, 7 Jun 2009 11:31:26 -0700 (PDT) Alex Raichev wrote: > > Hi all: > > Upon upgrading to Sage 4.0, i can no longer make a dictionary with > derivatives as keys (see below). Can someone please fix this? > -- >

[sage-support] derivative bug in Sage 4.0 symbolics?

2009-06-07 Thread Alex Raichev
Hi all: Upon upgrading to Sage 4.0, i can no longer make a dictionary with derivatives as keys (see below). Can someone please fix this? Alex -- | Sage Version 4.0, Release Date: 2009-05-29 | | Type not