Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Solvers
New issue 4046 by [email protected]: solving equation with
multiple abs runs into problems if symbols are real
http://code.google.com/p/sympy/issues/detail?id=4046
With plain vanilla symbols, all is fine:
var('a:z')
(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)
solve((abs(x+5)+abs(2*x-1)+abs(2*x+1)-10))
[-5/3,1]
But when the symbols are real then an error is generated:
var('a:z',real=True)
(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)
solve((abs(x+5)+abs(2*x-1)+abs(2*x+1)-10))
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/base/data/home/apps/s~sympy-live-hrd/39.369438448182393855/sympy/sympy/solvers/solvers.py",
line 885, in solve
solution = _solve(f[0], *symbols, **flags)
File "/base/data/home/apps/s~sympy-live-hrd/39.369438448182393855/sympy/sympy/solvers/solvers.py",
line 1384, in _solve
"\nNo algorithms are implemented to solve equation %s" % f)
NotImplementedError: multiple generators [Abs(2*x + 1), Abs(2*x - 1), Abs(x
+ 5)]
--
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.