Re: [sage-support] rational variables?

2015-03-14 Thread david.guichard
Thanks! -- 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. To post to this group, send email to sage-support@googlegroups

Re: [sage-support] rational variables?

2015-03-14 Thread William Stein
On Sat, Mar 14, 2015 at 6:30 PM, david.guichard wrote: > I want to do something like this: > > R = PolynomialRing(QQ,'x');S.=R.quotient(x^3+x+1); > T.=QQ[] > b*a > > Namely, create expressions mixing rational variables and elements of a > quotient field over the rationals. > > Doing something like

[sage-support] rational variables?

2015-03-14 Thread david.guichard
I want to do something like this: R = PolynomialRing(QQ,'x');S.=R.quotient(x^3+x+1); T.=QQ[] b*a Namely, create expressions mixing rational variables and elements of a quotient field over the rationals. Doing something like this: (3/4)*a is fine, but the b*a, gives me TypeError: unsupported

[sage-support] Symbolic rational variable

2015-03-14 Thread david.guichard
I'm looking for a way to create a symbolic rational variable--it must be possible, right? I want to do something like this: R = PolynomialRing(QQ,'x');S.=R.quotient(x^3+x+1);S1. = S[]; (y^3+y+1)(y=a); var('b1 b2 b3') (b1+b2*a+b3*a^2)^2 and get (b2^2+2*b1*b3-b3^2)*a^2+(2*b1*b2-2*b2*b4*b3-b3^2)

[sage-support] Worksheet "sleep"

2015-03-14 Thread v_2e
Hello! I have the following problem, and I do not know whether it is a bug or a supposed behaviour. I upload a C program to my worksheet and compile it using the server's GCC with this command: os.system("cd "+DATA+" && gcc infinite_cycle.c -o infinite_cycle.bin") Than I start the obtained

Re: [sage-support] problems plotting...

2015-03-14 Thread Jan Groenewald
Hi I have no idea how to solve this. If you create and log in as a different user, does it have the same problem? (I can confirm my PPA installs do not show this error) It might also help to ask on an ipython list (but mention that you get this in sage). Or install ipython from ppa:jtaylor/ipyth

[sage-support] Re: problems plotting...

2015-03-14 Thread patrick bobbitt
I'm trying the monkey solution of building from source... I have little hope that it will work, but who knows? On Thursday, March 12, 2015 at 9:55:03 PM UTC-4, patrick bobbitt wrote: > > I've installed the binaries for Ubuntu 14.04 using the PPA: > > apt-add-repository -y ppa:aims/sagemath > a

Re: [sage-support] problems plotting...

2015-03-14 Thread patrick bobbitt
Yep: sage: %config DisplayFormatter DisplayFormatter options -- DisplayFormatter.active_types= Current: [u'text/plain'] List of currently active mime-types to display. You can use this to set a white-list for formats to display. Most users will not need to chan

Re: [sage-support] Unexpected behaviour: xgcd with rationals

2015-03-14 Thread Vincent Delecroix
Dear Álinson, This is now fixed in the new release sage-6.5 sage: xgcd(4,2) (2, 0, 1) sage: xgcd(Rational(4),Rational(2)) (2, 0, 1) But be careful that the output type depends on the input sage: a,b,c = xgcd(4,2) sage: d,e,f = xgcd(Rational(4), Rational(2)) sage: type(a), type(b), type(c) (, ,