[sage-support] Re: How can I make a topographic map with Sage?

2009-01-29 Thread David Joyner
I don't know if there is anything Sage specific. However, Sage contains matplotlib, which apparently can do such things. For example, I googled maps matplotlib and got this: http://www.scipy.org/Cookbook/Matplotlib/Maps On Thu, Jan 29, 2009 at 8:32 PM, Sage wrote: > > Is Sage suitable for topog

[sage-support] Re: How can I make a topographic map with Sage?

2009-01-29 Thread Carl Witty
On Jan 29, 5:32 pm, Sage wrote: > Is Sage suitable for topography? I have collected the data of a see, > discreate data points. I need to make regressions on the data. Then, I > think the contour plot creates the final topographic map. Or am I > wrong? How are topographic maps dene in Sage? Can I

[sage-support] How can I make a topographic map with Sage?

2009-01-29 Thread Sage
Is Sage suitable for topography? I have collected the data of a see, discreate data points. I need to make regressions on the data. Then, I think the contour plot creates the final topographic map. Or am I wrong? How are topographic maps dene in Sage? Can I give the data as an input and get the ma

[sage-support] Re: Large formula simplification

2009-01-29 Thread Zac
Small example:http://sagenb.org/home/pub/195 I would like to have it decompose into something like: z = ( 0.027027027027e ) / d + 3p/dmq f'(x) = ( 4 * z ^ 2 ) - ( 2 * z ) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] spherical_bessel_J() argument

2009-01-29 Thread Robert Close
I'm trying to do some symbolic calculus and am having trouble with the special function spherical_bessel_J(). I can't get it to work when the argument contains two factors. Here is a simple program: k=var('k'); k=maxima(k); rho=var('rho'); rho=maxima(rho); arg=var('arg'); arg=maxima(arg); arg=k*r

[sage-support] Large formula simplification

2009-01-29 Thread Zac
I have a really large formula that obviously has some common terms and significant duplication inside of it, is there a way to make sage reduce, or extract out common pieces? Small example: http://sagenb.org:8000/home/pub/195 Any help is greatly appreciated. -Zac --~--~-~--~~--

[sage-support] Re: Illegal instruction error -- missing processor flag pni

2009-01-29 Thread Arun
On Jan 27, 2:54 pm, William Stein wrote: > On Tue, Jan 27, 2009 at 11:44 AM, Arun wrote: > > > On Jan 27, 3:14 am, William Stein wrote: > >> On Mon, Jan 26, 2009 at 2:07 PM, Arun wrote: > > >> > When I try to run Sage 3.2.3 on Pentium M 750 (Dothan, MMX, SSE, SSE2) > >> > with VMWare on Window

[sage-support] Field Embeddings

2009-01-29 Thread cm
Hi, suppose I have a field embedding A = GF(2^4) -> B = GF(2^20) say, and I pick a homomorphism phi from C=A.Hom(GF(2^20,'x')), e.g. sage: phi Ring morphism: From: Finite Field in x of size 2^4 To: Finite Field in x of size 2^20 Defn: x |--> x^19 + x^14 + x^13 + x^12 + x^10

[sage-support] Re: Running Sage with a Red Hat distribution

2009-01-29 Thread Harald Schilly
On Jan 29, 1:09 pm, david wrote: > I have Red Hat > distribution of Linux. Could you please specify the red hat version you have and your cpu type? Probably the fedora binary could work for you but I don't know. harald --~--~-~--~~~---~--~~ To post to this gro

[sage-support] Re: sage 3.2.3: plots being displayed in webbrowser

2009-01-29 Thread hvniekerk
> > Could you please paste the following lines into a Sage session and > tell me their output? > sage: sage.misc.viewer.viewer() 'firefox' sage: sage.misc.viewer.BROWSER 'firefox' sage: sage.misc.viewer.PNG_VIEWER 'firefox' sage: sage.misc.viewer.DVI_VIEWER 'xdvi' sage: sage.misc.viewer.PDF_VIEWE

[sage-support] Running Sage with a Red Hat distribution

2009-01-29 Thread david
Dear support team, I would like to install sage on my Machine. I have Red Hat distribution of Linux. Can I get a compiled package? or do I have to build the source myself? Thanks! David --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@goog

[sage-support] Re: list of functions

2009-01-29 Thread martin Campos Pinto
> This is caused by the scoping rules for Python's lambdas and list > comprehensions. See the question and answer here for an > explanation:http://stackoverflow.com/questions/139819/why-results-of-map-and-list... > > --Mike ...ok, so, a way to write it would be b = [lambda x,u=i:u for i in ran

[sage-support] Re: Strange behaviour of float()?

2009-01-29 Thread Mike Hansen
Hello, On Wed, Jan 28, 2009 at 11:56 PM, martin Campos Pinto wrote: > > Hi everybody, > > in my Notebook (version 3.2.3) I get the following: > > sage: a = float(1>1) > sage: a > > 0.0 > > sage: var('x') > sage: b(x) = float(x>1) When you make a definition like this, float is immediately applie

[sage-support] Re: list of functions

2009-01-29 Thread Mike Hansen
Hello, On Thu, Jan 29, 2009 at 1:46 AM, martin Campos Pinto wrote: > I get 0 (which is fine), now when I type > > b = [lambda x:i for i in range(2)] > b[0](0) > > I get 1 ... There must be a simple explanation for this but I can't > figure it out. What's wrong ? This is caused by the scoping ru

[sage-support] Strange behaviour of float()?

2009-01-29 Thread martin Campos Pinto
Hi everybody, in my Notebook (version 3.2.3) I get the following: sage: a = float(1>1) sage: a 0.0 sage: var('x') sage: b(x) = float(x>1) Traceback (most recent call last): File "", line 1, in File "/Users/campos/.sage/sage_notebook/worksheets/admin/4/code/ 204.py", line 8, in _=var

[sage-support] list of functions

2009-01-29 Thread martin Campos Pinto
Hi again, ... and again sorry if this is a newbie's question: so when I type (in my sage Notebook 3.2.3) a = [i for i in range(2)] a[0] I get 0 (which is fine), now when I type b = [lambda x:i for i in range(2)] b[0](0) I get 1 ... There must be a simple explanation for this but I can't figur