#13246: Automatic exclusion of non-domain points in things like arcsec
-----------------------------------------+--------------------------
Reporter: kcrisman | Owner: jason, was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.2
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: Punarbasu Purkayastha | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------------------+--------------------------
Comment (by ppurka):
Replying to [comment:23 rws]:
> Apart from that the patch no longer applies---and I'm not sure if the
changes meanwhile done in Sage possibly change the overall situation or
the necessary patch---, the given doctest fails with `AttributeError:
'complex' object has no attribute 'arccos'`.
I haven't considered rebasing this patch (and a couple other patches)
because there doesn't seem to be much interest in this. The issue that
this patch fixes did come up in the mailing list two or three months ago,
but I haven't obtained any feedback since then. As far as I know, this
issue is definitely not fixed even in the latest development versions.
The problem with `AttributeError` is not introduced with this patch. It
seems to be a problem with Sage itself. The code where it fails is
{{{
.../sage/local/lib/python2.7/site-packages/sage/functions/trig.pyc in
_evalf_(self, x, parent, algorithm)
732 if parent is float:
733 return math.acos(1/x)
--> 734 return (1/x).arccos()
735
736 def _eval_numpy_(self, x):
}}}
The fix is to change line 732 to
{{{
if instance(parent, (float, complex)):
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/13246#comment:24>
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.