Opened 6 years ago

Last modified 5 years ago

#17285 closed defect

CIF(cos(3/2)) fails — at Initial Version

Reported by: jdemeyer Owned by:
Priority: major Milestone: sage-6.6
Component: basic arithmetic Keywords:
Cc: tmonteil, vdelecroix Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #17130 Stopgaps:

Description

sage: CIF(cos(3/2))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-31-4eae9038f0b3> in <module>()
----> 1 CIF(cos(Integer(3)/Integer(2)))

/usr/local/src/sage-config/local/lib/python2.7/site-packages/sage/rings/complex_interval_field.pyc in __call__(self, x, im)
    378 
    379             try:
--> 380                 return x._complex_mpfi_( self )
    381             except AttributeError:
    382                 pass

/usr/local/src/sage-config/local/lib/python2.7/site-packages/sage/symbolic/expression.so in sage.symbolic.expression.Expression._complex_mpfi_ (build/cythonized/sage/symbolic/expression.cpp:8043)()

Similar things do work:

sage: RIF(cos(3/2))
0.0707372016677030?
sage: CC(cos(3/2))
0.0707372016677029
sage: CIF(cos(3))
-0.98999249660044542?

Change History (0)

Note: See TracTickets for help on using tickets.