Updates:
Status: Valid
Labels: Solvers
Blockedon: sympy:2070
Comment #1 on issue 3890 by [email protected]: dsolve failing for an
equality muliplied by -1
http://code.google.com/p/sympy/issues/detail?id=3890
In [12]: dsolve(-f(x).diff(x)+x*exp(-k*x),f(x))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-12-6ec35f00242d> in <module>()
----> 1 dsolve(-f(x).diff(x)+x*exp(-k*x),f(x))
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.pyc in
dsolve(eq, func, hint, simplify, **kwargs)
506 func, order, hint)
507 return rv
--> 508
509 def classify_ode(eq, func=None, dict=False, **kwargs):
510 """
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.pyc in
_helper_simplify(eq, hint, match, simplify)
527 where hintname is the name of the hint without "_Integral".
528
--> 529 See sympy.ode.allhints or the sympy.ode docstring for a list of
all
530 supported hints that can be returned from classify_ode.
531
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
wrapper(*args, **kwargs)
132 result = apply_on_element(wrapper, args,
kwargs, n)
133 return result
--> 134 return f(*args, **kwargs)
135 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.pyc in
odesimp(eq, func, order, hint)
1144 substitute each derivative into ode in reverse order.
1145
-> 1146 This function returns a tuple. The first item in the tuple is
True
1147 if the substitution results in 0, and False otherwise. The
second
1148 item in the tuple is what the substitution results in. It
should
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
wrapper(*args, **kwargs)
132 result = apply_on_element(wrapper, args,
kwargs, n)
133 return result
--> 134 return f(*args, **kwargs)
135 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.pyc in
constantsimp(expr, independentsymbol, endnumber, startnumber, symbolname)
1602 con_set = set(constantsymbols)
1603 if num:
-> 1604 for o in other:
1605 b, e = o.as_base_exp()
1606 if b.is_Add and \
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
wrapper(*args, **kwargs)
132 result = apply_on_element(wrapper, args,
kwargs, n)
133 return result
--> 134 return f(*args, **kwargs)
135 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.pyc in
constantsimp(expr, independentsymbol, endnumber, startnumber, symbolname)
1715
1716 Examples
-> 1717 ========
1718
1719 >>> from sympy import symbols, Eq, pprint
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
wrapper(*args, **kwargs)
130 else:
131 kwargs[n] = structure_copy(entry)
--> 132 result = apply_on_element(wrapper, args,
kwargs, n)
133 return result
134 return f(*args, **kwargs)
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
apply_on_element(f, args, kwargs, n)
34 # f_reduced will call itself recursively so that in the end f
is applied to
35 # all basic elements.
---> 36 return map(f_reduced, structure)
37
38
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
f_reduced(x)
30 else:
31 kwargs[n] = x
---> 32 return f(*args, **kwargs)
33
34 # f_reduced will call itself recursively so that in the end f
is applied to
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/multidimensional.pyc
in
wrapper(*args, **kwargs)
132 result = apply_on_element(wrapper, args,
kwargs, n)
133 return result
--> 134 return f(*args, **kwargs)
135 return wrapper
/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/ode.pyc in
constantsimp(expr, independentsymbol, endnumber, startnumber, symbolname)
1604 for o in other:
1605 b, e = o.as_base_exp()
-> 1606 if b.is_Add and \
1607 all(a.args_cnc(cset=True,
warn=False)[0] &
1608 con_set for a in b.args):
AttributeError: 'bool' object has no attribute 'has'
Obviously, an issue of non-Basic args in Piecewise (issue 2070).
--
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.