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)
Ou
Hi, try srepr(Rational(1,2))
Stepan
2009/6/15 Aaron S. Meurer :
>
> I have a quick question. Is there a way to print things exactly as
> you would enter them? For example, Rational(1,2) would print
> Rational(1,2) instead of 1/2, and Eq(x, y) would print Eq(x, y)
> instead of x == y. This wou
Hello,
just FYI, there are already random number objects in sympy,
you can access them this way:
>>> from sympy.statistics import *
>>> x = Normal(0,1)
>>> x.random()
-0.181742214115
>>> a = x.random(10)
>>> print a
Sample([-1.47958009923, -1.23521203179, -0.783418473091,
-0.0760736376295, -0.046
2008/10/21 Ondrej Certik <[EMAIL PROTECTED]>:
>
> Hi Pekeika!
>
> On Tue, Oct 21, 2008 at 7:27 PM, Pekeika <[EMAIL PROTECTED]> wrote:
>>
>> Good morning, I'm trying to do the following symbolic integration:
>>
>> Integral(exp(v**2+3*v+2),v).doit() The real polynomial I'm trying to
>> integrate is