So I am using sympy version 0.7.1, and am trying to reproduce a recent article
in CISE (Computing in Science and Education) by Matthew Rocklin and Andy Terrel
(http://dx.doi.org/10.1109/MCSE.2012.56) on "Symbolic Statistics with Sympy".
In the article they calculate the position and speed of a projectile. Then they
replace one of the variables with a random variable, to look at the resulting
effect on the trajectory.
They don't post all of the code together, but they have things like:
from sympy.stats import *
X=Die(6)
which immediately gives me ImportError: No module named stats
if I replace it with sympy.statistics, then I get NameError: name 'Die' is not
defined
finally, in their trajectory example, they have
y0=Normal(10,1)
x0,yf,v,theta,t,g=symbols('x0,yf,v,theta,t,g')
y=y0+v*sin(theta)*t-g/2*t**2
and it gives TypeError: unsupported operand type(s) for +: 'Normal' and 'Mul'
it seems as if sympy.statistics.Normal doesn't behave at all like described in
the article - you can't seem to add or subtract anything to it, etc...
Am I doing something wrong? Is there a different download that I am missing?
thanks!
Brian Blais
--
Brian Blais
[email protected]
http://web.bryant.edu/~bblais
http://brianblais.wordpress.com/
--
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.