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

New issue 4032 by [email protected]: trigsimp() TypeError: symbolic boolean expression has no truth value.
http://code.google.com/p/sympy/issues/detail?id=4032

n,k = symbols('n k', integer=True, positive=True)
simplify(2**(n/2)*cos(pi*n/4)/2 + 2**(n - 1)/2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pape/sympy/sympy/simplify/simplify.py", line 3699, in simplify
    expr = trigsimp(expr, deep=True)
  File "/home/pape/sympy/sympy/simplify/simplify.py", line 1427, in trigsimp
    return trigsimpfunc(expr)
  File "/home/pape/sympy/sympy/simplify/simplify.py", line 1420, in <lambda>
    'matching': (lambda x: futrig(x)),
  File "/home/pape/sympy/sympy/simplify/simplify.py", line 4272, in futrig
    e = bottom_up(e, lambda x: _futrig(x, **kwargs))
File "/home/pape/sympy/sympy/simplify/simplify.py", line 4044, in bottom_up
    for a in rv.args])
File "/home/pape/sympy/sympy/simplify/simplify.py", line 4047, in bottom_up
    rv = F(rv)
  File "/home/pape/sympy/sympy/simplify/simplify.py", line 4272, in <lambda>
    e = bottom_up(e, lambda x: _futrig(x, **kwargs))
  File "/home/pape/sympy/sympy/simplify/simplify.py", line 4342, in _futrig
    e = greedy(tree, objective=Lops)(e)
  File "/home/pape/sympy/sympy/strategies/core.py", line 118, in minrule
    return min([rule(expr) for rule in rules], key=objective)
  File "/home/pape/sympy/sympy/strategies/core.py", line 45, in chain_rl
    expr = rule(expr)
  File "/home/pape/sympy/sympy/simplify/fu.py", line 934, in TR10i
    return bottom_up(rv, f)
File "/home/pape/sympy/sympy/simplify/simplify.py", line 4047, in bottom_up
    rv = F(rv)
  File "/home/pape/sympy/sympy/simplify/fu.py", line 929, in f
    rv = do(rv)  # final pass to resolve any new inducible pairs
  File "/home/pape/sympy/sympy/simplify/fu.py", line 870, in do
    split = trig_split(*args, two=True)
  File "/home/pape/sympy/sympy/simplify/fu.py", line 1833, in trig_split
    gcd = a.gcd(b).as_expr()
  File "/home/pape/sympy/sympy/core/exprtools.py", line 536, in gcd
    exp = min(exp, other.factors[factor])
  File "/home/pape/sympy/sympy/core/relational.py", line 226, in __nonzero__
    raise TypeError("symbolic boolean expression has no truth value.")
TypeError: symbolic boolean expression has no truth value.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to