[sage-devel] Two upcoming Sage webinars

2011-03-11 Thread kcrisman
Friends interested in learning more about Sage? Check out the upcoming M-Casts (short webinars) by Karl-Dieter Crisman and David Joyner, sponsored by Project Mosaic, an NSF-supported project to get more people integrating computation, calculus, statistics, and data in first-year college mathematic

[sage-devel] Re: FLINT 2.1 released

2011-03-11 Thread Bill Hart
Fredrik has blogged about how to use some of the new functionality here: http://fredrik-j.blogspot.com/2011/03/flint-example-lambert-w-function-power.html Bill. On Mar 10, 1:25 am, Bill Hart wrote: > Hi all, > > We are pleased to announce the release of flint 2.1. It can be > obtained at the fl

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Volker Braun
I'd say its safe to manually construct static paths. Whenever url components are specified by the user you should use urllib.quote() or similar to ensure validity. On Friday, March 11, 2011 8:12:23 PM UTC, John H Palmieri wrote: > > If you need to build a path, you should always use os.path.join

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread John H Palmieri
On Friday, March 11, 2011 11:46:05 AM UTC-8, Volker Braun wrote: > > If you need to build a path, you should always use os.path.join. +1. It would be good to fix parts of the Sage library which do otherwise. However, if you want to construct a URL (as in some of the scripts, like sage-updat

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Volker Braun
Thats true if the multiple slashes are in the middle (though I agree that thats the case here). http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11 say: "A pathname that begins with two successive slashes may be interpreted in an implementation-defined manner, alt

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Volker Braun
Posix doesn't define the behaviour of double slashes. Most implementations treat it as single-slash, which is sane but clearly we shouldn't rely on benign behaviour. If you need to build a path, you should always use os.path.join. Not all OS'es understand slash as a path separator. -- To pos

Re: [sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Robert Bradshaw
On Fri, Mar 11, 2011 at 11:39 AM, John H Palmieri wrote: > > > On Friday, March 11, 2011 10:39:18 AM UTC-8, kcrisman wrote: >> >> > If you do, then I bet that the problem is the double slash.  In fact, we >> > just ran into this same sort of problem when working on the new jmol >> > going into Sag

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread John H Palmieri
On Friday, March 11, 2011 10:39:18 AM UTC-8, kcrisman wrote: > > > > If you do, then I bet that the problem is the double slash. In fact, we > > just ran into this same sort of problem when working on the new jmol > > going into Sage---the temporary directory has a double-slash, so it is > >

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread kcrisman
> If you do, then I bet that the problem is the double slash.  In fact, we > just ran into this same sort of problem when working on the new jmol > going into Sage---the temporary directory has a double-slash, so it is > confusing where exactly that temp directory is. Incidentally, I've seen a lo

[sage-devel] Re: evaluation of polynomials in several variables

2011-03-11 Thread Simon King
On 11 Mrz., 17:24, Volker Braun wrote: > Substitution should always try to return the same type (i.e. same parent) if > possible. Anything else will just be a constant source of bugs where your > code works with generic polynomial input, but not for constants. Yes, but the fact that f(2,3) has a

[sage-devel] Re: evaluation of polynomials in several variables

2011-03-11 Thread Volker Braun
Substitution should always try to return the same type (i.e. same parent) if possible. Anything else will just be a constant source of bugs where your code works with generic polynomial input, but not for constants. -- To post to this group, send an email to sage-devel@googlegroups.com To unsub

[sage-devel] evaluation of polynomials in several variables

2011-03-11 Thread chris wuthrich
Let f be a polynomial in two variables x and y over a ring R. Consider the following three commands i) f(2,3) ii) f(x=2,y=3) iii) f.subs(x=2,y=3) They give the same results but not the same type. i) gives an element in R while ii) and iii) are constant polynomials in two variables. Follin

Re: [sage-devel] Re: Inverse of permutation group elements

2011-03-11 Thread Francois Maltey
Hello, I have some questions about semantics and typographics convention in : 1/ Permutation 2/ PermutationGroupElement 3/ permutations (with lower p) 4/ Permutations Suppose I don't know Sage. How can I imagine the design of each function ? What is the first (question or) answer I must get ? I

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Jason Grout
On 3/11/11 7:22 AM, Hector wrote: Yes I do have a write permission to /home/hector/.sage//temp/ If you do have write permissions to that directory (*with* the double slash), then the double slash may not be the problem. And that file looks like this - " ===

Re: [sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Hector
Yes I do have a write permission to /home/hector/.sage//temp/ And that file looks like this - " " Netrw Directory Listing(netrw v136) " /home/hector/.sage/temp " Sorted by

[sage-devel] Re: Unexpected opening in Sage

2011-03-11 Thread Jason Grout
On 3/11/11 6:17 AM, Hector wrote: Hello everyone, I recently got my laptop formatted and hence have to work with older version of sage for few days.I cloned it and while starting the Sage I got following error. I have never been close to anything like this before so sorry but I am posting this qu

[sage-devel] Unexpected opening in Sage

2011-03-11 Thread Hector
Hello everyone, I recently got my laptop formatted and hence have to work with older version of sage for few days.I cloned it and while starting the Sage I got following error. I have never been close to anything like this before so sorry but I am posting this question without putting much effort f