Hi there!

When trying to plot the probability density function of a skew normal-distribution as a function of an "alpha" skewness I found the following error:

sage: from scipy.stats import norm
sage: var('alpha')
sage: skew_norm(x, alpha) = 2*norm.pdf(x)*norm.cmd(x*alpha)

TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'numpy.bool_'

I know that Sage had some issues with numpy/scipy , and in the past I updated some patches (5081, 6497, and 6506) to solve these kind of problems. However, my current version of Sage (4.3.5) does not admit these patches anymore, and the problem seems to be partially solved (see bellow):

sage: sin(np.arrange(5))
sage: array([ 0. , 0.84147098, 0.90929743, 0.14112001, -0.7568025 ])

Do I have to update other patches, install the latest Sage version or something else?

Any suggestion would be greatly appreciated!

Thanks a lot

Jose.

--
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/sage-support
URL: http://www.sagemath.org

Reply via email to