#15179: Function_cot.__evalf_() missing some cases
-------------------------+-----------------------------
Reporter: burcin | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-5.12
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+-----------------------------
From [https://groups.google.com/d/msg/sage-
support/TpG75SlXTRE/wo8rGfE76W8J this sage-support thread]:
{{{
sage: u = cot(pi*x)
sage: u.is_zero()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
<snip>
/home/burcin/sage/sage-5.11.beta3/local/lib/python2.7/site-
packages/sage/functions/trig.pyc in _evalf_(self, x, parent)
377 if parent is float:
378 return 1/math.tan(x)
--> 379 return x.cot()
380
381 def _derivative_(self, x, diff_param=None):
<snip>
AttributeError: 'sage.rings.complex_interval.ComplexIntervalFieldElement'
object has no attribute 'cot'
}}}
There are many objects which end up as `x` in `Function_cot._evalf_()`
that do not support `.cot()`.
We should check if the other functions in `sage/functions/trig.py` handle
more input types properly.
--
Ticket URL: <http://trac.sagemath.org/ticket/15179>
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/groups/opt_out.