Ticket #1174 (closed defect: fixed)
[with patch, with positive review] very minor bug in calculs _complex_ coercion.
| Reported by: | was | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.15 |
| Component: | calculus | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description (last modified by robertwb) (diff)
Still broken (or perhaps something deeper)
sage: complex(cos(3))
------------------------------------------------------------
Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File "/Users/robert/sage/current/local/lib/python2.5/site-packages/sage/calculus/calculus.py", line 3908, in __complex__
return complex(f._approx_(complex(g)))
<type 'exceptions.TypeError'>: can't convert complex to float; use abs(z)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

