Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3746 by [email protected]: TypeError: unsupported operand
type(s) for //: 'Float' and 'Float' with log(54250., 10.).evalf()
http://code.google.com/p/sympy/issues/detail?id=3746
In [59]: log(5425., 10.).evalf()
Out[59]: 3.73439974252057
In [60]: log(54250., 10.).evalf()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-60-824bed5b862f> in <module>()
----> 1 log(54250., 10.).evalf()
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/cache.pyc in
wrapper(*args, **kw_args)
90 except KeyError:
91 pass
---> 92 func_cache_it_cache[k] = r = func(*args, **kw_args)
93 return r
94 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.pyc in
__new__(cls, *args, **options)
278
279 evaluate = options.get('evaluate', True)
--> 280 result = super(Function, cls).__new__(cls, *args, **options)
281 if not evaluate or not isinstance(result, cls):
282 return result
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/cache.pyc in
wrapper(*args, **kw_args)
90 except KeyError:
91 pass
---> 92 func_cache_it_cache[k] = r = func(*args, **kw_args)
93 return r
94 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/function.pyc in
__new__(cls, *args, **options)
124
125 if evaluate:
--> 126 evaluated = cls.eval(*args)
127 if evaluated is not None:
128 return evaluated
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/functions/elementary/exponential.pyc
in
eval(cls, arg, base)
494 raise ValueError
495 n = multiplicity(base, arg)
--> 496 return n + log(arg // base ** n) / log(base)
497 except ValueError:
498 pass
TypeError: unsupported operand type(s) for //: 'Float' and 'Float'
--
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.