[sage-support] Re: "Integer is not iterable"

2017-01-04 Thread Volker Braun
And the reason for the error: ZZ ^ tuple doesn't make sense, so we try to convert the base to the same type. And tuple(2) yields a TypeError: 'sage.rings.integer.Integer' object is not iterable On Wednesday, January 4, 2017 at 9:43:21 PM UTC+1, Volker Braun wrote: > > You wrote 2^(0,5) instead o

[sage-support] Re: "Integer is not iterable"

2017-01-04 Thread Volker Braun
You wrote 2^(0,5) instead of 2^(0.5) Note that (0, 5) is shorthand for tuple([0, 5]) in Python. Whereas one-half is written with a decimal dot, not a comma. On Wednesday, January 4, 2017 at 2:55:36 PM UTC+1, Fjordforsk A/S wrote: > > I am trying to plot a trigonometric function, but get a stran

Re: [sage-support] "Precision too low for generators, not given"

2017-01-04 Thread Jeroen Demeyer
I think it means that PARI didn't compute the unit group for certain number fields. Since you don't need the unit group, I see no issue. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails fr

Re: [sage-support] Command for computing matrix elements of the Weil representation

2017-01-04 Thread Brandon Rayhaun
Dear Fredrik: Thanks very much for your reply. I'm trying to install the software now, but am having a bit of trouble. In particular I get a large error message, which I'm copying below. Any advice would be appreciated. This is after I run sage setup.py develop Best, Brandon [ 8/52] Cythoni

[sage-support] Re: "Integer is not iterable"

2017-01-04 Thread slelievre
Wed 2017-01-04 20:13:49 UTC+1, slelievre: > > Wed 2017-01-04 14:55:36 UTC+1, Fjordforsk A/S: >> >> I am trying to plot a trigonometric function, but get a strange result: >> >> plot3d(lambda >> x,t:((cos(2^(0.5)*x)*sech(2^(0.5)*t)+I*2^0.5*tanh(2*t))/(2^(0.5)-cos(2^(0.5)*x)*sech(2^(0,5)*t)))*e^(2

[sage-support] Re: "Integer is not iterable"

2017-01-04 Thread slelievre
Wed 2017-01-04 14:55:36 UTC+1, Fjordforsk A/S: > > I am trying to plot a trigonometric function, but get a strange result: > > plot3d(lambda > x,t:((cos(2^(0.5)*x)*sech(2^(0.5)*t)+I*2^0.5*tanh(2*t))/(2^(0.5)-cos(2^(0.5)*x)*sech(2^(0,5)*t)))*e^(2*I*t).real_part(),(x,-3*pi,3*pi),(t,-5,5),adaptive=T

[sage-support] Re: "Integer is not iterable"

2017-01-04 Thread Dima Pasechnik
This works for me after I defined cmsel as you did in your previous posts. On Wednesday, January 4, 2017 at 1:55:36 PM UTC, Fjordforsk A/S wrote: > > I am trying to plot a trigonometric function, but get a strange result: > > plot3d(lambda > x,t:((cos(2^(0.5)*x)*sech(2^(0.5)*t)+I*2^0.5*tanh(2*t))

[sage-support] "Integer is not iterable"

2017-01-04 Thread Fjordforsk A/S
I am trying to plot a trigonometric function, but get a strange result: plot3d(lambda x,t:((cos(2^(0.5)*x)*sech(2^(0.5)*t)+I*2^0.5*tanh(2*t))/(2^(0.5)-cos(2^(0.5)*x)*sech(2^(0,5)*t)))*e^(2*I*t).real_part(),(x,-3*pi,3*pi),(t,-5,5),adaptive=True,color=cmsel) /home/sem/SageMath/sage-7.4/src/sage/ri

[sage-support] "Precision too low for generators, not given"

2017-01-04 Thread Erick Knight
Hello, I am currently running some code computing the class groups of various fields. This is going over a large number of fields and is occasionally returning the warning "precision too low for generators, not given." If the only calls that I am invoking that are related to ideals are H.cla

[sage-support] Re: Setting end variable on print

2017-01-04 Thread Nils Bruin
On Tuesday, January 3, 2017 at 8:54:55 PM UTC-8, saad khalid wrote: > > Hey everyone: > > I would like to use the print function without it creating a new line. > From what I remember, I could do print("whatever I want", end=""), and that > should make it not create a new line. However, when I