Status: Accepted Owner: ---- Labels: Type-Defect Priority-High WrongResult
New issue 1384 by ondrej.certik: assumptions docs are wrong http://code.google.com/p/sympy/issues/detail?id=1384 In [1]: z = Symbol("z", real=False) In [2]: z? Type: Symbol Base Class: <class 'sympy.core.symbol.Symbol'> String Form: z Namespace: Interactive File: /home/ondrej/repos/sympy/sympy/core/symbol.py Docstring: Assumptions:: real = True commutative = True You can override the default assumptions in the constructor:: >>> A,B = symbols('AB', commutative = False) >>> bool(A*B != B*A) True >>> bool(A*B*2 == 2*A*B) == True # multiplication by scalars is commutative True Call def: z(self, *args) The docs is wrong, since real=False. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---
