#16459: polar_plot crash with expressions containing floor
-------------------------+----------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.3
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+----------------------------
Reported on sage-support:
{{{
sage: polar_plot((1+cos(fibonacci(floor(alpha)))), (alpha, -3*pi/2,pi/2))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-5-d55fb7d2b898> in <module>()
----> 1 polar_plot((Integer(1)+cos(fibonacci(floor(alpha)))), (alpha,
-Integer(3)*pi/Integer(2),pi/Integer(2)))
/home/ralf/sage/local/lib/python2.7/site-
packages/sage/combinat/combinat.pyc in fibonacci(n, algorithm)
500 TypeError: no conversion of this rational to integer
501 """
--> 502 n = ZZ(n)
503 if algorithm == 'pari':
504 return ZZ(pari(n).fibonacci())
/home/ralf/sage/local/lib/python2.7/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:8905)()
/home/ralf/sage/local/lib/python2.7/site-
packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.NamedConvertMap._call_
(sage/structure/coerce_maps.c:5442)()
/home/ralf/sage/local/lib/python2.7/site-
packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression._integer_
(sage/symbolic/expression.cpp:6142)()
TypeError: unable to convert x (=floor(alpha)) to an integer
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16459>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.