> I don't get that from master.

It is wrong, check for example the first branch of Piecewise:

In [210]: Piecewise((x*x**x*gamma(x + 1)/gamma(x + 2), Abs(x) < 1), 
(x*x**x*gamma(x + 
1)/gamma(x + 2) + gamma(x + 1)/gamma(x + 2) + gamma(-x - 1)/gamma(-x), 
Abs(1/x) < 1), (meijerg(((1,), (x + 2,)), ((x + 1,), (0,)), x) + 
meijerg(((x + 2, 1), ()), ((), (x + 1, 0)), x), True))
Out[210]: Piecewise((x*x**x*gamma(x + 1)/gamma(x + 2), Abs(x) < 1), 
(x*x**x*gamma(x + 1)/gamma(x + 2) + gamma(x + 1)/gamma(x + 2) + gamma(-x - 
1)/gamma(-x), Abs(1/x) < 1), (meijerg(((1,), (x + 2,)), ((x + 1,), (0,)), x) + 
meijerg(((x + 2, 1), ()), ((), (x + 1, 0)), x), True))

In [211]: _.args[0]
Out[211]: (x*x**x*gamma(x + 1)/gamma(x + 2), Abs(x) < 1)

In [212]: _[0]
Out[212]: x*x**x*gamma(x + 1)/gamma(x + 2)

In [213]: diff(_, x)
Out[213]: x*x**x*(log(x) + 1)*gamma(x + 1)/gamma(x + 2) + x*x**x*gamma(x + 
1)*polygamma(0, x + 1)/gamma(x + 2) - x*x**x*gamma(x + 1)*polygamma(0, x + 
2)/gamma(x + 2) + x**x*gamma(x + 1)/gamma(x + 2)

In [214]: _.subs(x, 0.5).evalf(100)
Out[214]: 
0.3865955836781125679972130152843116472164789835611979166666666666666666666666666666666666666666666667

In [215]: x**x
Out[215]: x**x

In [216]: _.subs(x, 0.5).evalf(100)
Out[216]: 
0.7071067811865475727373109293694142252206802368164062500000000000000000000000000000000000000000000000

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to