[sage-support] Re: Piecewise function definition

2009-07-22 Thread Laurent
I'm doing numerical minimization on it right now and the only reason I want/need it to be a sage function is so I can .subs() real values for my parameters. To get around that, I'm just going to use global variables for my parameters. It's kind of ugly, but it will work. It would be nice

[sage-support] Re: units and absolute fields

2009-07-22 Thread John Cremona
M.units() will give a set of units which are a Z-basis for the units modulo roots of unity. There is no canonical basis, so there's no reason why (even if the unit ranks are the same) you should get the same generators. For more functionality with units construct U=X.unit_group() and look at

[sage-support] Re: Groebner bases over symbolic ring

2009-07-22 Thread Martin Albrecht
On Tuesday 21 July 2009, Marshall Hampton wrote: I would recommend looking at how Mathematica handles this sort of thing. One of the things I miss is its ability to selectively treat different variables as either part of a coefficient ring or as multivariate polynomials. For example:

[sage-support] Re: units and absolute fields

2009-07-22 Thread davidloeffler
On Jul 21, 6:01 pm, mac8090 bonzerpot...@hotmail.com wrote: For a field extension over Q of 2 values, for example M=QQ(i, sqrt (2)), it is possible to find an absolute field X by the following L.b=NumberField(x^2-2) R.t=L[] M.c=L.extension(t^2+1) (this gets M) X.d=M.absolute_field()

[sage-support] Re: Groebner bases over symbolic ring

2009-07-22 Thread Marshall Hampton
I guess I was trying to say that it would be nice if that could be done more easily, like if one could do sage: var('x,y,z') sage: fs = [x^2*y - y, sin(z)*x*y^2 - y*sin(z)] sage: SR.groebner_basis(fs, [x,y]) -Marshall On Jul 22, 3:47 am, Martin Albrecht m...@informatik.uni-bremen.de wrote:

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Michael Madison
Ethen, Sorry I have not tried. I wanted to speed up some molecular dynamics code I have been playing with that uses numpy and I actually only need the real types. Also, I have been just working with the notebooks. For VMWARE the graphics does not work outside of the notebook interface. Since

[sage-support] accessing sage notebook with android phone

2009-07-22 Thread Dan Christensen
When I try to log in to sagenb.org or a sage notebook on a personal machine using the browser on my android phone, after entering username and password I end up at an empty page whose title is Error | Sage Notebook and whose URL is http://sagenb.org/login I can view published worksheets without

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Robert Bradshaw
After applying both http://trac.sagemath.org/sage_trac/ticket/6438 and http://trac.sagemath.org/sage_trac/ticket/4571 , the notebook seems to work just as well as the command line, or just raw Cython. Hopefully this makes it into 4.1.1. As for complex types, there's still some issues of

[sage-support] Re: Rendering latex

2009-07-22 Thread VictorMiller
Ok, I've absorbed all of that. This morning it occured to me that it would be nice if one could define a class method called _html_. If present, it would try to render an htmlized (is that a word?) version of the class (just as __str__ renders a printable version or _latex_ renders a latex

[sage-support] Re: Rendering latex

2009-07-22 Thread VictorMiller
Ok, I've absorbed all of that. This morning it occured to me that it would be nice if one could define a class method called _html_. If present, it would try to render an htmlized (is that a word?) version of the class (just as __str__ renders a printable version or _latex_ renders a latex

[sage-support] Re: Rendering latex

2009-07-22 Thread VictorMiller
Ok, I've absorbed all of that. This morning it occured to me that it would be nice if one could define a class method called _html_. If present, it would try to render an htmlized (is that a word?) version of the class (just as __str__ renders a printable version or _latex_ renders a latex

[sage-support] Graphics support for R within notebook interface?

2009-07-22 Thread SunKidDance
Hi, using sage 4.0.2 with the Windows notebook interface (via VM virtual machine) I wonder that there in no possibility to show a R plot directly in the notebook: x - 1:10 plot(x) Error in png() : X11 is not available A 'capabilties()' call shows the reason: jpeg pngtcltk X11

[sage-support] Re: accessing sage notebook with android phone

2009-07-22 Thread William Stein
On Wed, Jul 22, 2009 at 7:54 AM, Dan Christensenj...@uwo.ca wrote: When I try to log in to sagenb.org or a sage notebook on a personal machine using the browser on my android phone, after entering username and password I end up at an empty page whose title is Error | Sage Notebook and whose

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Ethan Van Andel
Robert, Should those double complex declarations give any speedup? Are they declaring the numpy complex type or something else? Slightly unrelated, how are self.something variables handled? It seems like you can't cdef them, so are they then always going to be slow? If you cdef a variable and

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Robert Bradshaw
On Jul 22, 2009, at 10:55 AM, Ethan Van Andel wrote: Robert, Should those double complex declarations give any speedup? Yes, lots (compared to using Python complex objects). The are complex analogues of int, double, float, etc. Are they declaring the numpy complex type or something else?

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Michael Madison
Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I will attempt to follow the Sage Days 16 How to get started with developing Sage to apply the patches. At first look this does not look straight forward. Mike On Jul 22, 8:32 am, Robert Bradshaw rober...@math.washington.edu

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread William Stein
On Wed, Jul 22, 2009 at 11:21 AM, Michael Madisonmadison.mich...@gmail.com wrote: Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I will attempt to follow the Sage Days 16 How to get started with developing Sage to apply the patches.  At first look this does not look

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Minh Nguyen
On Thu, Jul 23, 2009 at 4:27 AM, William Steinwst...@gmail.com wrote: On Wed, Jul 22, 2009 at 11:21 AM, Michael Madisonmadison.mich...@gmail.com wrote: Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I will attempt to follow the Sage Days 16 How to get started with

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Robert Bradshaw
On Jul 22, 2009, at 11:27 AM, William Stein wrote: On Wed, Jul 22, 2009 at 11:21 AM, Michael Madisonmadison.mich...@gmail.com wrote: Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I will attempt to follow the Sage Days 16 How to get started with developing Sage to apply

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Minh Nguyen
On Thu, Jul 23, 2009 at 4:36 AM, Robert Bradshawrober...@math.washington.edu wrote: On Jul 22, 2009, at 11:27 AM, William Stein wrote: On Wed, Jul 22, 2009 at 11:21 AM, Michael Madisonmadison.mich...@gmail.com wrote: Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Ethan Van Andel
Robert, Is there any prediction for when numpy complex types will work? (outside of the notebook, when compiling via sage -b) Thanks, Ethan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Ethan Van Andel
Yet another question: When I compile my class, I get something like this: cdef class Riemann_Map: cdef int N, B, ncorners cdef f cdef opp cdef double complex a cdef np.ndarray[float,ndim = 1] tester ^

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Michael Madison
All, I decided to try hg and I created a clone and added a ~/.hrgc to the /develope/sage directory with my infomation. However, the last patch put me into the hg_editor-DwDTEO.txt and says the following: HG: Enter commit message. lines beginning with 'HG:' HG: -- HG: user : Michael Madison

[sage-support] Re: accessing sage notebook with android phone

2009-07-22 Thread Dan Christensen
William Stein wst...@gmail.com writes: On Wed, Jul 22, 2009 at 7:54 AM, Dan Christensenj...@uwo.ca wrote: When I try to log in to sagenb.org or a sage notebook on a personal machine using the browser on my android phone, after entering username and password I end up at an empty page whose

[sage-support] Re: accessing sage notebook with android phone

2009-07-22 Thread William Stein
On Wed, Jul 22, 2009 at 1:57 PM, Dan Christensenj...@uwo.ca wrote: William Stein wst...@gmail.com writes: On Wed, Jul 22, 2009 at 7:54 AM, Dan Christensenj...@uwo.ca wrote: When I try to log in to sagenb.org or a sage notebook on a personal machine using the browser on my android phone,

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Minh Nguyen
Hi Michael, On Thu, Jul 23, 2009 at 6:55 AM, Michael Madisonmadison.mich...@gmail.com wrote: All, I decided to try hg and I created a clone and added a ~/.hrgc to the /develope/sage directory with my infomation. However, the last patch put me into the hg_editor-DwDTEO.txt and says the

[sage-support] Re: accessing sage notebook with android phone

2009-07-22 Thread Dan Christensen
Oh, if anyone *has* had success, please report back, so we know if it's something peculiar to my phone or my accounts. For the record, I have an HTC Dream on the Rogers network running android 1.5 (cupcake). My browser version is 1.2.0008. Dan

[sage-support] Re: accessing sage notebook with android phone

2009-07-22 Thread Rob Beezer
A student of mine was running a connection to a Sage notebook server on his Android phone last Friday. He showed me an interesting plot, so I know it was working properly. I'll point him to this discussion and see if I can get details. Rob Dan Christensen wrote: Oh, if anyone *has* had