Re: [sage-support] Testing if polynomial is in ideal

2010-09-06 Thread Alex Ghitza
On Mon, 6 Sep 2010 20:42:43 -0700 (PDT), Cary Cherng wrote: > Given p_i and q in Q[x_1,...,x_n] I want to see if q is in the ideal > (p1,...,pm). Does sage have easy support for this? Is this what you're looking for: sage: R. = QQ[] sage: I = R.ideal(x^2, y) sage: x^2*y+y^2 in I True sage: x in

[sage-support] Testing if polynomial is in ideal

2010-09-06 Thread Cary Cherng
Given p_i and q in Q[x_1,...,x_n] I want to see if q is in the ideal (p1,...,pm). Does sage have easy support for this? -- 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,

[sage-support] Re: Automatic display of new variables?

2010-09-06 Thread Alasdair
In the first case I'd return: u = 3 v = 4 (one line for each variable) and in the second case u = 4 v = 3 I wasn't aware about Magma, as I've never used it! All of Maple, Mathematica, MuPAD, Maxima and Axiom autoprint. -Alasdair On Sep 7, 12:32 pm, Jason Grout wrote: > On 9/6/10 9:27 PM, W

[sage-support] Re: Automatic display of new variables?

2010-09-06 Thread Jason Grout
On 9/6/10 9:27 PM, William Stein wrote: On Monday, September 6, 2010, Jason Grout wrote: On 9/6/10 6:02 PM, Alasdair wrote: As you know, when you define a new variable: sage: a = 2 the value is not automatically displayed. So you have to: sage: a = a+3; a to display it. This is different

[sage-support] showing multiple polygons

2010-09-06 Thread Innigo
The doco at: http://combinat.sagemath.org/doc/reference/sage/plot/polygon.html?highlight=polygon2d#sage.plot.polygon.polygon2d has lots of example of various polgons but what if I want to do some tiling and build up a scene of lots of polygons? Do I have to use show(p1+p2+p3+...)? What if there are

Re: [sage-support] Automatic display of new variables?

2010-09-06 Thread William Stein
On Monday, September 6, 2010, Jason Grout wrote: > On 9/6/10 6:02 PM, Alasdair wrote: > > As you know, when you define a new variable: > > sage: a = 2 > > the value is not automatically displayed.  So you have to: > > sage: a = a+3; a > > to display it.  This is different to all other CAS's (at le

[sage-support] Re: Automatic display of new variables?

2010-09-06 Thread Alasdair
I assumed it was a python thing, but I was wondering if there was some way of putting a Sage wrapper over the assignment operator to return the result. -Alasdair On Sep 7, 11:24 am, Jason Grout wrote: > On 9/6/10 6:02 PM, Alasdair wrote: > > > As you know, when you define a new variable: > > > s

[sage-support] Re: Automatic display of new variables?

2010-09-06 Thread Jason Grout
On 9/6/10 6:02 PM, Alasdair wrote: As you know, when you define a new variable: sage: a = 2 the value is not automatically displayed. So you have to: sage: a = a+3; a to display it. This is different to all other CAS's (at least to my knowledge), where a variable assignment automatically re

[sage-support] Automatic display of new variables?

2010-09-06 Thread Alasdair
As you know, when you define a new variable: sage: a = 2 the value is not automatically displayed. So you have to: sage: a = a+3; a to display it. This is different to all other CAS's (at least to my knowledge), where a variable assignment automatically returns the result unless you ask it no

[sage-support] Re: field of symbolic expressions

2010-09-06 Thread Jason Grout
On 9/6/10 1:58 PM, Michael Beeson wrote: I want to create a vector space of dimension three, over the field whose elements are symbolic expressions. (The reason is that then I can do vector calculus on such objects, which represent surfaces in 3- space if the expressions depend on 2 parameters

Re: [sage-support] field of symbolic expressions

2010-09-06 Thread Mike Hansen
On Mon, Sep 6, 2010 at 11:58 AM, Michael Beeson wrote: > I want to create a vector space of dimension three,  over the field > whose elements are symbolic expressions.   (The reason is that then I > can do vector calculus on such objects, which represent surfaces in 3- > space if the expressions d

[sage-support] field of symbolic expressions

2010-09-06 Thread Michael Beeson
I want to create a vector space of dimension three, over the field whose elements are symbolic expressions. (The reason is that then I can do vector calculus on such objects, which represent surfaces in 3- space if the expressions depend on 2 parameters.) How can I do this? The following, for

[sage-support] Re: how does one read rational numbers in Sage?

2010-09-06 Thread Dima Pasechnik
thanks for a propmt reply, Minh ! --- I needed it quickly, so I even contemplated reading it in GAP instead of Sage :-) On Sep 6, 9:44 pm, Minh Nguyen wrote: > Hi Dima, > > On Mon, Sep 6, 2010 at 11:26 PM, Dima Pasechnik wrote: > > What is going on? This is with > >  Sage Version 4.5.3.rc0, Rele

Re: [sage-support] netcdf error in sage-4.5.2

2010-09-06 Thread Dr. David Kirkby
On 09/ 6/10 11:12 AM, Minh Nguyen wrote: Hi, On Fri, Sep 3, 2010 at 8:03 PM, samrat wrote: When i recompile netcdf-4.1.1 with CFLAGS=-fPIC i no longer get this error. It this a bug in sage or what i have done is correct? Many standard packages that are shipped by default with Sage are usuall

Re: [sage-support] how does one read rational numbers in Sage?

2010-09-06 Thread Minh Nguyen
Hi Dima, On Mon, Sep 6, 2010 at 11:26 PM, Dima Pasechnik wrote: > What is going on? This is with >  Sage Version 4.5.3.rc0, Release Date: 2010-08-30 The problem lies with typing in Python. Any file with the extension ".py" is interpreted by Sage as a Python module and is loaded in/read as such w

[sage-support] how does one read rational numbers in Sage?

2010-09-06 Thread Dima Pasechnik
I have a list, with some entries integer vectors, and some rational. Say, in a file a.py I have the following: dat=[[6,3,3,4,1,3/2], [6,3,3,4,1,1]] print dat If in Sage session I do load('a.py') I get sage: load('a.py') [[6, 3, 3, 4, 1, 1], [6, 3, 3, 4, 1, 1]] sage: dat [[6, 3, 3, 4, 1, 1], [6,

[sage-support] How to install a customized version of sagenb?

2010-09-06 Thread Thierry Dumont
I want to patch sagenb (to add ldap identification). I did it some time ago by modifying notebook.py, avatars.py in in a cloned verion of Sage. Now that we have a separate package sagenb, what is the best way to proceed ? I can download sagenb, untar it, make my modifications and then??? Or i

[sage-support] Re: installation of Sage

2010-09-06 Thread Simon King
Hi! On Sep 6, 10:03 am, Dan Drake wrote: > ... > Googling "sh: undefined symbol: rl_filename_rewrite_hook" immediately > led me to this thread: > > http://www.mail-archive.com/sage-support@googlegroups.com/msg16822.html > > There, the problem seemed related to different compiler versions, > altho

Re: [sage-support] netcdf error in sage-4.5.2

2010-09-06 Thread Minh Nguyen
Hi, On Fri, Sep 3, 2010 at 8:03 PM, samrat wrote: > When i recompile netcdf-4.1.1 with CFLAGS=-fPIC i no longer get this > error. It this a bug in sage or what i have done is correct? Many standard packages that are shipped by default with Sage are usually compiled with CFLAGS=-fPIC. So what you

[sage-support] Re: Sage2LaTeX: is it an error?

2010-09-06 Thread adriatikus
Thank you for your reply. It is indeed 4.5.2 (for OSX). The online version has it too. On Sep 6, 12:58 pm, Minh Nguyen wrote: > Hi, > > On Mon, Sep 6, 2010 at 7:16 PM, adriatikus wrote: > > Shouldn't it be instead > > \frac{-(l + r)}{l - r} > > Thank you for your bug report. I can confirm this p

Re: [sage-support] Sage2LaTeX: is it an error?

2010-09-06 Thread Minh Nguyen
Hi, On Mon, Sep 6, 2010 at 7:16 PM, adriatikus wrote: > Shouldn't it be instead > \frac{-(l + r)}{l - r} Thank you for your bug report. I can confirm this problem with Sage 4.5.2: sage: version() 'Sage Version 4.5.2, Release Date: 2010-08-05' sage: var('l'); var('r'); sage: x = (r+l)/(r-l) sage

[sage-support] numerical 3-D convolution

2010-09-06 Thread leonard . jeloaica
Hello, I would like to know how to do the convolution of two 3-D functions represented as 3-D arrays of complex numbers with sage. The arrays are supposed to be imported data from another output. Thank you in advance for any help. Leonard -- To post to this group, send email to sage-support@go

[sage-support] Sage2LaTeX: is it an error?

2010-09-06 Thread adriatikus
Hi. I have the following Sage code: var('l') var('r') x = (r+l)/(r-l) latex(x) And the output is: \frac{-l + r}{l - r} Shouldn't it be instead \frac{-(l + r)}{l - r} Thank you. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

Re: [sage-support] Re: installation of Sage

2010-09-06 Thread Dan Drake
On Mon, 06 Sep 2010 at 01:11AM -0700, Michael wrote: > I just tried it once more with he same result. This is the output I > get: (For me it's kind of cryptic, but maybe one of you can help me.) > Thanks a lot! > -- > | Sage Versio

[sage-support] Re: installation of Sage

2010-09-06 Thread Michael
I just tried it once more with he same result. This is the output I get: (For me it's kind of cryptic, but maybe one of you can help me.) Thanks a lot! -- | Sage Version 4.5.2, Release Date: 2010-08-05 | | Typ