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

2009-06-08 Thread paramaniac
Thank you for the fast response! Regards, Lukas --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at

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

2009-06-08 Thread paramaniac
Thank you for the fast response! Regards, Lukas --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at

[sage-support] Coercion into power series ring

2009-06-08 Thread Kwankyu
Hi, See this: sage: R.t=PowerSeriesRing(QQ) sage: P.x=PolynomialRing(R) sage: f=(x*t+t^2)/t sage: f x + t sage: P(f) --- TypeError Traceback (most recent call last) ... TypeError: Unable to

[sage-support] code breakage due to upgrade to sage 4.0

2009-06-08 Thread Stan Schymanski
Dear all, I noticed that some of my old code does not work any more with sage 4.0. I used to assign the solutions of equations by referring to them in the following way: -- | Sage Version 4.0, Release Date: 2009-05-29

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

2009-06-08 Thread Jason Grout
Dan Drake wrote: 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

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

2009-06-08 Thread ccandide
On 8 juin, 03:25, Bruce Cohen math.co...@gmail.com wrote: I installed this binary: sage-4.0-linux-Debian_GNU_Linux_4.0_etch-sse2-i686-Linux on my ubuntu 8.04 machine.   For information : wich processor ? how many RAM ? --~--~-~--~~~---~--~~ To post to this

[sage-support] Re: Coercion into power series ring

2009-06-08 Thread Kwankyu
A comparable case works well. sage: S.x=ZZ[] sage: f=2*x+4; sage: f/2 x + 2 sage: S(f/2).parent() Univariate Polynomial Ring in x over Integer Ring --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] Removing objects from lists; keeping original list unchanged?

2009-06-08 Thread Alasdair
This is more of a python question than a Sage question, but anyway...I'm trying to iterate over a list, producing a sequence of new lists, each of which is obtained from the original list by deleting one object. I've tried: for x in lst: lstc=copy(lst) print lstc.remove(x) But this

[sage-support] Re: Removing objects from lists; keeping original list unchanged?

2009-06-08 Thread Jason Bandlow
Alasdair wrote: This is more of a python question than a Sage question, but anyway...I'm trying to iterate over a list, producing a sequence of new lists, each of which is obtained from the original list by deleting one object. I've tried: for x in lst: lstc=copy(lst) print

[sage-support] Re: Removing objects from lists; keeping original list unchanged?

2009-06-08 Thread simon . king
Hi Alasdair, I understand that you mean sage: lst=[[1,2],[3,4],[5,6]] sage: for x in lst: : lstc=copy(lst) : lstc.remove(x) : print lstc : [[3, 4], [5, 6]] [[1, 2], [5, 6]] [[1, 2], [3, 4]] Probably you got onle None printed. This is because the

[sage-support] Re: Removing objects from lists; keeping original list unchanged?

2009-06-08 Thread Alasdair
Thanks for that! Only a little thing, but I was getting very confused. -A. On Jun 9, 12:01 am, Jason Bandlow jband...@gmail.com wrote: Alasdair wrote: This is more of a python question than a Sage question, but anyway...I'm trying to iterate over a list, producing a sequence of new

[sage-support] Re: Removing objects from lists; keeping original list unchanged?

2009-06-08 Thread Justin C. Walker
On Jun 8, 2009, at 06:44 , Alasdair wrote: This is more of a python question than a Sage question, but anyway... FYI, the Python site has plenty of documentation; the Library reference manual would have provided the answer. I'm trying to iterate over a list, producing a sequence of new

[sage-support] Re: Using multiple cores with Sage under VMWare Player

2009-06-08 Thread James Parson
You might have to use vmware workstation in order to configure the virtual machine to use more than 1 core:  http://www.vmware.com/products/ws/ It costs money, but there is an easy 1-month free trial.  You could try that in order to tell whether multiple cores will work with the virtual

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

2009-06-08 Thread kcrisman
This is based on the code developed in the threadhttp://groups.google.com/group/sage-devel/browse_thread/thread/100de8... (that code probably should get into Sage; it makes some calculations very, very easy to write down...) The trac ticket for incorporating this decorator

[sage-support] sage -t problems with semicolons and line breaks

2009-06-08 Thread davidp
On the file test.py, consisting of EXAMPLES:: sage: gcd(4,6); sage: a = {1:'a', 2:'b'} running sage -t produces two error messages (see below). Is it true that sage -t does not recognize semicolons and does not parse line breaks correctly? (Cutting

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

2009-06-08 Thread Jason Grout
kcrisman wrote: This is based on the code developed in the threadhttp://groups.google.com/group/sage-devel/browse_thread/thread/100de8... (that code probably should get into Sage; it makes some calculations very, very easy to write down...) The trac ticket for incorporating this

[sage-support] Re: Folders to organise worksheets

2009-06-08 Thread kilucas
On Jun 4, 9:44 am, William Stein wst...@gmail.com wrote: On Thu, Jun 4, 2009 at 1:36 AM, kilucas kevin.lu...@concave.co.uk wrote: As a set of worksheets grows I feel I need to organise them into my own folder structure. On sagenb I can see Active, Archived and Trash folders for

[sage-support] Re: Using multiple cores with Sage under VMWare Player

2009-06-08 Thread William Stein
2009/6/8 James Parson par...@hood.edu: You might have to use vmware workstation in order to configure the virtual machine to use more than 1 core:  http://www.vmware.com/products/ws/ It costs money, but there is an easy 1-month free trial.  You could try that in order to tell whether

[sage-support] Re: Coercion into power series ring

2009-06-08 Thread Kwankyu
I tried change_ring(), without success... sage: R.t=PowerSeriesRing(QQ) sage: P.x=PolynomialRing(R) sage: f=t*x+t^2 sage: g=f/t sage: f t*x + t^2 sage: g x + t sage: f.parent() Univariate Polynomial Ring in x over Power Series Ring in t over Rational Field sage: g.parent() Univariate Polynomial

[sage-support] Re: Using multiple cores with Sage under VMWare Player

2009-06-08 Thread James Parson
Here's a really dumb thing you could do. (1) Make a copy of sage-vmware-* to another directory. (2) Run both vmware's at the same time. That'll definitely use both cores on your computer. Indeed! That's what I ended up doing this afternoon. I had VMWare Workstation make a clone of my