[sage-support] Re: From Google Earth to Sage. Is sage capable of this?

2009-10-23 Thread brandon holmes
I failed to mention that i am more concerned about The altitude On Oct 23, 4:24 pm, brandon holmes wrote: > I am trying to do something with sage that I found on the internet for > Mathematica.  I am trying to extract longitude and latitude values > from google earth as seen in this blog post. >

[sage-support] From Google Earth to Sage. Is sage capable of this?

2009-10-23 Thread brandon holmes
I am trying to do something with sage that I found on the internet for Mathematica. I am trying to extract longitude and latitude values from google earth as seen in this blog post. http://mathgis.blogspot.com/2009/07/extract-elevation-data-from-google.html I am new to sage, I am not sure if i

[sage-support] Re: Remove?

2009-10-23 Thread Jason Grout
Rolandb wrote: > Hi, > print [1,2,3,4].remove(4) > None > I would expect [1,2,3] (following up) The pythonic way to do this would be: a = [1,2,3,4] a.remove(4) print a Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups

[sage-support] Re: Remove?

2009-10-23 Thread Jason Grout
Rolandb wrote: > Hi, > print [1,2,3,4].remove(4) > None > I would expect [1,2,3] Why? This is a python thing. Generally, if you change an object, it just changes the object and nothing is returned. .sort(), .append(), etc. are all consistent this way. Jason --~--~-~--~~---

[sage-support] Remove?

2009-10-23 Thread Rolandb
Hi, print [1,2,3,4].remove(4) None I would expect [1,2,3] Rolandb --~--~-~--~~~---~--~~ 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, vis

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread Jason Grout
William Stein wrote: > > That's one of those quick hackish design decisions that comes back to > haunt us over the years... can one just query matplotlib for a range > that contains all the elements in the plot? Indeed! Some discussion: For tick labels and other things that extend beyond th

[sage-support] Re: sqrt(16)

2009-10-23 Thread Mikie
Thanks, Burcin. I tried using a string rep, but it still evaluates in my Python script. On Oct 23, 1:12 am, Burcin Erocal wrote: > On Thu, 22 Oct 2009 15:16:32 -0700 (PDT) > > Mikie wrote: > > I want to take the expression sqrt(16) from a function parameter and > > return the sqrt(16) not 4.  

[sage-support] Re: Sage 4.1.2 Problem HTML cell Latex arrays 2X2 no longer work

2009-10-23 Thread Jim Clark
This problem (+ another problem that I did not describe) has been solved in alpha.sagenb.org. Verified with both Safari and Firefox browsers. Thanks for your efforts! Jim Clark On Oct 22, 2009, at 7:58 PM, William Stein wrote: > On Thu, Oct 22, 2009 at 1:48 PM, Jim Clark > wrote: >> >> Her

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread William Stein
On Fri, Oct 23, 2009 at 6:30 AM, Jason Grout wrote: > > William Stein wrote: > >> Thanks!  And, argh!  I stared at the output of k.plot? for 10-15 >> minutes before in response to the original email, and axes_pad isn't >> even there.     That would have been useful many times in my class >> last

[sage-support] Re: How do superscripts, subscripts and Greek letters in notebook?

2009-10-23 Thread William Stein
On Fri, Oct 23, 2009 at 1:29 AM, lutusp wrote: > > On Oct 20, 11:19 am, Chris Seberino wrote: >> Possible to do superscripts, subscripts and Greek letters in >> notebooks? > > show(html("$ \lambda_0 \omega_1 \lambda^0 \omega^1$")) I would put an r before the quotes so you don't have to escape t

[sage-support] Re: How to change the config of sage

2009-10-23 Thread Mike Hansen
Hello, 2009/10/23 : > so I want to know how to change the default config of > > sage to show something like a picture or a dvi file, etc. You can set the SAGE_BROWSER environment variable before you try to view the plot. For additional information, you can look at the source code of sage.misc.

[sage-support] Re: How to change the config of sage

2009-10-23 Thread ma...@mendelu.cz
Probably depends not on Sage but on your OS. Customize file associtations in your file manager. Or what aoubt to save picture in native format and use convertcommand to convert into gif or anything else. Robert On 23 říj, 12:34, wxu...@sohu.com wrote: > Hi all, > > when I use sage.4.0.2 to plot

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread Jason Grout
William Stein wrote: > Thanks! And, argh! I stared at the output of k.plot? for 10-15 > minutes before in response to the original email, and axes_pad isn't > even there. That would have been useful many times in my class > last year. That will teach me to read the source more. It's an o

[sage-support] Re: problem in displaying graphs

2009-10-23 Thread Jason Grout
pong wrote: > Hi Jason, > > Setting axes_pad=.1 does work. Thanks! However, I tried your > codes in the previous email. The resulting graph has nodes "clump > together". I guess the problem is with the value 1.5. When I changed > that to a smaller value say .05 then things work just fine. Ev

[sage-support] coercing or substituting variables in symmetric polynomials

2009-10-23 Thread David Madore
Dear List, I'm trying to substitute various expressions for the variables of symmetric polynomials returned by SymmetricFunctionAlgebra_generic(...).expand() but I can't figure out how to ask Sage to replace these variables or coerce them to some other polynomial ring. E.g.: ---

[sage-support] Re: graphic with R statistic program

2009-10-23 Thread Dag Sverre Seljebotn
Vincent Delecroix wrote: > Hi, > > I'm working on simple statistic example for which I use the SAGE > interface of the R program. I'm not able to plot a graphic. > > In R we use : > {{{ > R: x <- (1, 1, 1, 2, 3, 3, 4, 5, 5, 6) > R: hist(x) > }}} > > I try the following in SAGE (version 4.1) : > {{

[sage-support] A little problem with map_threaded

2009-10-23 Thread Alasdair
Here is an example: sage: G.=GF(2^8) sage: M=random_matrix(G,2,2) sage: map(int,M.row(0)) [152, 58] sage: map_threaded(int,M) TypeError: base_ring (=) must be a ring Why won't map_threaded work where map does? Thanks, Alasdair --~--~-~--~~~---~--~~ To post to th

[sage-support] How to change the config of sage

2009-10-23 Thread wxuyec
Hi all, when I use sage.4.0.2 to plot a picture, it use the eog to show it in default. But the eog can't save a gif file. so I want to know how to change the default config of sage to show something like a picture or a dvi file, etc. Thanks in advance! --~--~-~--~~

[sage-support] Re: How do superscripts, subscripts and Greek letters in notebook?

2009-10-23 Thread lutusp
On Oct 20, 11:19 am, Chris Seberino wrote: > Possible to do superscripts, subscripts and Greek letters in > notebooks? show(html("$ \lambda_0 \omega_1 \lambda^0 \omega^1$")) The underscore signifies subscript, the circumflex signifies superscript. There are some rather baroque rules about getti

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-23 Thread Joaquim Puig
Thanks to all the comments. I will try to put them together and publish a workhseet with the comparisons. Best wishes, Joaquim Puig En/na Tim Lahey ha escrit: > > On Oct 22, 2009, at 2:15 PM, Nasser Abbasi wrote: > >> >> Hi, >> >> how do you run matlab command from sage like this above? I have

[sage-support] Re: sqrt(16)

2009-10-23 Thread Burcin Erocal
On Thu, 22 Oct 2009 15:16:32 -0700 (PDT) Mikie wrote: > I want to take the expression sqrt(16) from a function parameter and > return the sqrt(16) not 4. Is this possible? Not right now, sorry. I have an idea how to "hold" symbolic expressions so they are not evaluated automatically, but it