[SciPy-user] struve function

Pauli Virtanen pav@iki...
Mon Feb 23 20:18:59 CST 2009


Mon, 23 Feb 2009 20:09:23 -0600, Robert Kern wrote:

> On Mon, Feb 23, 2009 at 20:05, Gideon Simpson <simpson@math.toronto.edu>
> wrote:
>> Am I correct that the struve function, scipy.special.struve, only
>> accept scalar arguments?
> 
> No.
> 
> In [3]: struve([-12., +12, -11, +11], [41., -41., 41., -41.]) Out[3]:
> array([ -1.15736059e-01,  -1.12364370e+06,   8.33084926e-02,
>          6.29536643e+05])

If you're using the struve function, be aware of this:

	http://scipy.org/scipy/scipy/ticket/679

The results are incorrect for orders in range [-12, 0] and x < 20;
the bug is now fixed, but it was still present in 0.7.0.

-- 
Pauli Virtanen



More information about the SciPy-user mailing list