Comment #3 on issue 3555 by [email protected]: Simplify Stats expressions
http://code.google.com/p/sympy/issues/detail?id=3555

Am I missing something?

In [33]: var('sigma', positive=True)
Out[33]: σ

In [34]: X = Normal('X', mu, sigma)

In [35]: expr = X**2

In [36]: density(expr)
Out[36]:
 ⎛         ⎛         ___               ___  ⎞      ⎞
 ⎜         ⎜  -z   ╲╱ z ⋅μ     -z   -╲╱ z ⋅μ⎟    2 ⎟
 ⎜         ⎜ ────  ───────    ────  ────────⎟  -μ  ⎟
 ⎜         ⎜    2      2         2      2   ⎟  ────⎟
 ⎜         ⎜ 2⋅σ      σ       2⋅σ      σ    ⎟     2⎟
 ⎜     ___ ⎜ℯ    ⋅ℯ          ℯ    ⋅ℯ        ⎟  2⋅σ ⎟
 ⎜   ╲╱ 2 ⋅⎜────────────── + ───────────────⎟⋅ℯ    ⎟
 ⎜         ⎜    │  ___│           │  ___│   ⎟      ⎟
 ⎜         ⎝  2⋅│╲╱ z │         2⋅│╲╱ z │   ⎠      ⎟
Λ⎜z, ──────────────────────────────────────────────⎟
 ⎜                         ___                     ⎟
 ⎝                     2⋅╲╱ π ⋅σ                   ⎠

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to