Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3774 by [email protected]: AttributeError: 'mpc' object has no attribute '_mpf_' with atan2.evalf()
http://code.google.com/p/sympy/issues/detail?id=3774

In [43]: atan2(I, -1).evalf()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-43-2960eed9b6bb> in <module>()
----> 1 atan2 (I ,-Integer (1 )).evalf ()

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/evalf.pyc in evalf(self, n, subs, maxn, chop, strict, quad, verbose)
   1281         except NotImplementedError:
   1282             # Fall back to the ordinary evalf
-> 1283             v = self._eval_evalf(prec)
   1284             if v is None:
   1285                 return self

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.pyc in _eval_evalf(self, prec)
    394         try:
    395             mpmath.mp.prec = prec
--> 396             v = func(*args)
    397         finally:
    398             mpmath.mp.prec = orig

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/mpmath/ctx_mp.pyc in atan2(ctx, y, x)
    255         x = ctx.convert(x)
    256         y = ctx.convert(y)
--> 257 return ctx.make_mpf(libmp.mpf_atan2(y._mpf_, x._mpf_, *ctx._prec_rounding))
    258
    259     def psi(ctx, m, z):

AttributeError: 'mpc' object has no attribute '_mpf_'

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to