[sage-support] Unwanted factorization...

2013-10-04 Thread Christophe Bal
Hello, the following code prints *21**(x^2 + 2*x)/(28*x^2 - 3*x - 40) but I would simply like to have (21*x^2 + 42*x)/(28*x^2 - 3*x - 40) Can I acheive this ? Best regards. C. === CODE === param = [] for i in range(8): param.append(randint(-10,10)) num(x) = (param[0]*x -

[sage-support] Integer division of rationals

2013-10-04 Thread Nathann Cohen
Helloo everybody ! This is what I spent the last hour finding : sage: x = 1/2 sage: x 1/2 sage: x//2 1/4 I got some variable x as input, which was of rational type when I expected it to be integer type (does not matter, this rational was equal to an integer in my case). Unfortunately, x//2

Re: [sage-support] Integer division of rationals

2013-10-04 Thread William Stein
On Fri, Oct 4, 2013 at 9:26 AM, Nathann Cohen nathann.co...@gmail.com wrote: Helloo everybody ! This is what I spent the last hour finding : sage: x = 1/2 sage: x 1/2 sage: x//2 1/4 I got some variable x as input, which was of rational type when I expected it to be integer type

[sage-support] Div, grad, curl

2013-10-04 Thread Dan Aldrich
Does sage have any functions for div/grad/curl/del squared? Thanks, -d -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com.

Re: [sage-support] ellsearch on sagenb.org

2013-10-04 Thread Jeroen Demeyer
If you really want, you can access PARI's ellsearch through Sage using something like pari('''ellsearch(11a1)''') But, as others have said, Sage itself also contains the elliptic curve database, so why bother? -- You received this message because you are subscribed to the Google Groups

[sage-support] Bug in product of polyhedra

2013-10-04 Thread Victor Miller
The cartesian product of two polyhedra doesn't work if their dimensions are different: Consider the following (just run on sagenb.org): sage: B1 = Polyhedron(vertice=[(0,),(1,)]) sage: B1 A 1-dimensional polyhedron in ZZ^1 defined as the convex hull of 2 vertices sage: B2 = B1*B1 sage: B1

[sage-support] Re: Bug in product of polyhedra

2013-10-04 Thread Volker Braun
Thanks, this is now http://trac.sagemath.org/ticket/15253 On Friday, October 4, 2013 7:00:45 PM UTC+1, Victor Miller wrote: The cartesian product of two polyhedra doesn't work if their dimensions are different: Consider the following (just run on sagenb.org): sage: B1 =

[sage-support] Sagemath Cloud - Bugs and Suggestions

2013-10-04 Thread Christophe Bal
*Hello,* *here are some bugs and suggestions.* * * *Best regards.* *Christophe which is a real fan of Sagemath Cloud.* *=* *BUG 1* *=* * * *When I rename a Sage worksheet, its content is erased.* * * *=* *BUG 2* *=* * * *I can't download directly all the content of one fold.* *