On Sun, Nov 2, 2008 at 7:46 PM, Vinzent Steinberg
<[EMAIL PROTECTED]> wrote:
>
> On Nov 2, 3:30 am, Alan Bromborsky <[EMAIL PROTECTED]> wrote:
>> Suppose you have a calculation where you are simplifying
>> r*sin(theta)/sqrt(r**2*sin(theta)**2).  Is there a way of specifying
>> that r > 0 and 0 < theta < pi so that the result will simplify to 1
>> rather than
>> r*sin(theta)/(|r||sin(theta)|).
>
> Have you tried this?
>
>>>> r = Symbol('r', positive=True)
>>>> r.is_positive
> True
>
> More complicated assumptions like 0 < theta < pi is afaik currently
> not possible, but hopefully it will be implemented soon:
>
> See http://code.google.com/p/sympy/issues/detail?id=1047&q=assumptions.

Thanks for the reply. Indeed, any help with assumptions is very much
appreciated.

Ondrej

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to