Hello Stepan,
thanks for the quick and good answer.
Greetings,
Bastian.
Stepan Roucka wrote:
> Hello Bastian,
> this simplification is valid only for positive x in general (try x = -1).
>
> In [1]: x = Symbol("x", positive=True)
>
> In [2]: (x**2)**(3*numbers.One()/2)
> Out[2]:
> 3
> x
>
> for real x, it simplifies to absolute value
>
> In [3]: x = Symbol("x", real=True)
>
> In [4]: (x**2)**(3*numbers.One()/2)
> Out[4]:
> 3
> │x│
>
>
> Best regards
> Stepan
>
--
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.