Hi!
I tried this example in SMC:
http://cs613429.vk.me/v613429802/ce70/vEsYiuWxR4c.jpg
When I just evaluate values all works fine:
[1+cos(fibonacci(floor(tan((abs(alpha+pi/2)^0.22))))) for alpha in srange(-
pi/2, pi/2, pi/50, include_endpoint= True)]
But when I try to create polar_plot, I get an error message:
alpha=var('alpha')
polar_plot((1+cos(fibonacci(tan((abs(alpha+pi/2)^0.22))))), (alpha, -3*pi/2,
pi/2))
Error in lines 2-2
Traceback (most recent call last):
File
"/projects/7243d055-0edb-400d-978c-4845eb30b0c5/.sagemathcloud/sage_server.py",
line 734, in execute
exec compile(block+'\n', '', 'single') in namespace, locals
File "", line 1, in <module>
File "", line 2, in fibonacci
File
"/usr/local/sage/sage-6.2.rc0/local/lib/python2.7/site-packages/sage/combinat/combinat.py",
line 502, in fibonacci
n = ZZ(n)
File "parent.pyx", line 1070, in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:8858)
File "coerce_maps.pyx", line 223, in
sage.structure.coerce_maps.NamedConvertMap._call_
(sage/structure/coerce_maps.c:5442)
File "expression.pyx", line 862, in
sage.symbolic.expression.Expression._integer_
(sage/symbolic/expression.cpp:6113)
TypeError: unable to convert x (=floor(tan(abs(1/2*pi +
alpha)^0.220000000000000))) to an integer
What's wrong?
Thanks in advance, Andrei.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.