[sage-support] Re: sage server

2009-10-26 Thread David Guichard
Thanks! I'll give it a try. -- David --~--~-~--~~~---~--~~ 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, visit this group at http://gro

[sage-support] Re: Python lists and removals

2009-10-26 Thread kcrisman
Great, thanks to both of you. No wonder I didn't see it in the documentation for lists! Luckily my lists are probably very short (len<5) so don't have to worry about algorithms for now, just a bugfix. - kcrisman On Oct 26, 5:02 pm, Jason Grout wrote: > Dag Sverre Seljebotn wrote: > > > a) for

[sage-support] Re: Python lists and removals

2009-10-26 Thread Jason Grout
Dag Sverre Seljebotn wrote: > > a) for x in L[:]: ... # makes a copy > b) remove from the end of the list... c) use list comprehensions to construct a new list, then del the old list. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-suppo

[sage-support] Re: Python lists and removals

2009-10-26 Thread Dag Sverre Seljebotn
kcrisman wrote: > Dear support, > > I'm trying to resolve #7315 and have discovered something that > disturbs me, but probably is reasonable to someone who really > understands Python lists. Namely: > > {{{ L=[1,2,3,4] for x in L: > ... L.remove(x) > ... x > ... L > ... >

[sage-support] Re: Python lists and removals

2009-10-26 Thread Jason Grout
kcrisman wrote: > Dear support, > > I'm trying to resolve #7315 and have discovered something that > disturbs me, but probably is reasonable to someone who really > understands Python lists. Namely: > > {{{ L=[1,2,3,4] for x in L: > L.remove(x) > x > L > ...

[sage-support] Python lists and removals

2009-10-26 Thread kcrisman
Dear support, I'm trying to resolve #7315 and have discovered something that disturbs me, but probably is reasonable to someone who really understands Python lists. Namely: {{{ >>> L=[1,2,3,4] >>> for x in L: ... L.remove(x) ... x ... L ... 1 [2, 3, 4] 3 [2, 4] >>> L [2, 4] }}} Som

[sage-support] hold function

2009-10-26 Thread Mikie
Does anyone have a Sage hold frunction? Look at the code below - def LikeSimplify1a(ex1,ex2,ex3,ex4): eq1=str(ex1)+"+"+"("+str(ex2)+")"+"+"+"("+str(ex3)+")"+"+"+"("+str (ex4)+")" n1=SR(ex1);n2=SR(ex2);n3=SR(ex3);n4=SR(ex4) eq2=maxima.ratsimp(n1+n2+n3

[sage-support] Installation difficulties

2009-10-26 Thread dmb
Hello, I just obtained a new mac and an trying to install sage on it. I have copied the dmg to the applications folder, clicked on it and gone through the installation process. I was asked to enter a password, but I did not enter my password for my account, but rather one for sage usage (a stup

[sage-support] nearest integral vector with LLL

2009-10-26 Thread adam mohamed
Hi All, I would like to know if the search for the nearest vector using LLL in a lattice over a number field is implemented in Sage. The documentation does not say anything about that, unfortunately. Thanks. Regards, -- adam --~--~-~--~~~---~--~~ To post

[sage-support] Re: Factorize/collect a sub expression

2009-10-26 Thread Francois Maltey
mpad a écrit : > Hello everyone, > > I am new to sage (thanks for it ! it looks excellent !) and have been > trying to re-factor some long expressions. > As an example : > > sage: var('x,y,a,b,c,d') > (x, y, a, b, c, d) > sage: T=expand((x^2+y^2)*(a*b+a^2-2*d*c+c^2-3*b^2));T > a^2*x^2 + a^2*y^2 +

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

2009-10-26 Thread Jason Grout
brandon holmes wrote: > Thank you! i am very surprised anyone had any sort of answer! I will > play around with the links and see what i can come up with! > Also, you can duplicate exactly what Mathematica did (get data from COM) using python. Search for "python COM" in google. Except, of c

[sage-support] Obsolete online installation instructions

2009-10-26 Thread JDM
Windows installation instructions on this page are obsolete: http://www.sagemath.org/doc/installation/binary.html Also the link to readme.txt is broken. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from thi

[sage-support] Factorize/collect a sub expression

2009-10-26 Thread mpad
Hello everyone, I am new to sage (thanks for it ! it looks excellent !) and have been trying to re-factor some long expressions. As an example : sage: var('x,y,a,b,c,d') (x, y, a, b, c, d) sage: T=expand((x^2+y^2)*(a*b+a^2-2*d*c+c^2-3*b^2));T a^2*x^2 + a^2*y^2 + a*b*x^2 + a*b*y^2 - 3*b^2*x^2 - 3

[sage-support] Re: "Typeset" problem with sech(x)

2009-10-26 Thread Burcin Erocal
Hi, On Sun, 25 Oct 2009 19:44:21 -0700 (PDT) John H Palmieri wrote: > > On Oct 25, 7:37 pm, Marshall Hampton wrote: > > Latex doesn't actually support \sech, so this can't really be > > considered an error on Sage's part. > > > > Note that > > > > sage: latex('sech(x)') > > > > gives > > > >