On Jun 19, 2012, at 8:38 PM, Chris Smith <[email protected]> wrote:
> Since the sign can be 0 or 1 maybe that's why it's confused. If you
> give `a` a sign it works:
Ah, so this is actually not a bug, because if a is zero, then the
values of both the integral and the limit at infinity are different.
Not sure why I didn't notice that before...
Moral of the story: if you want something to be positive, define it
using Symbol(positive=True). abs() will give you nonnegative, which
is a little different...
Aaron Meurer
>
>>>> var('a',positive=True)
> a
>>>> f2=abs(a)*E**(-abs(a)*x)
>>>> integrate(f2,(x,0,oo))
> 1
>>>> limit(integrate(abs(a)*exp(-abs(a)*x), x), x, oo)
> 0
>
> /c
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.