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 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 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/rings/integer.pyx in 
>> sage.rings.integer.Integer.__pow__ 
>> (/home/sem/SageMath/sage-7.4/src/build/cythonized/sage/rings/integer.c:13508)()
>>    2031             nn = pyobject_to_long(n)
>>    2032         except TypeError:
>> -> 2033             s = parent_c(n)(self)
>>    2034             return s**n
>>    2035         except OverflowError:
>>
>>
>>
>>
>> *TypeError: 'sage.rings.integer.Integer' object is not iterable*What 
>> have I written wrongly?
>>
>>
>> *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.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to