Hi,

On 10 January 2011 09:05, Aaron S. Meurer <asmeu...@gmail.com> wrote:

> I never realized that abs() was also a namespace clash.  Yes, we should fix
> that too.  I think we should just change it to Abs.
>

This is what I do in inequalities solver, I import our abs as Abs. And this
abs issue is even worse than sum issue, because our abs sympifies its
argument, leading to hard to understand behaviour when you don't know that
abs() is overridden.


>
> Aaron Meurer
>
> On Jan 10, 2011, at 1:03 AM, smichr wrote:
>
> > Please see http://code.google.com/p/sympy/issues/detail?id=1727 for
> > what I hope will be perceived as the solution to this problem.
> >
> > Also I would love to get the clashing abs taken care of. That was a
> > nuisance when working with ntheory changes that I made because, in
> > there, many things are suppose to be integers, but if you accidently
> > sent a sympy object you would get back a sympy object instead of an
> > int which would then cause problems.
> >
> > What about absval()?
> >
> > Note that having abs in the way of the builtin abs also has a
> > performance hit:
> >
> > h[2] >>> T('abs(1)','from sympy import abs')
> > 7.4300624800079342
> > h[3] >>> T('abs(1)')
> > 0.24269369431030974
> >
> > /c
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+unsubscr...@googlegroups.com <sympy%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
>
Mateusz

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to