[Scipy-tickets] [SciPy] #1223: splev returns wrong values outside of support.

SciPy Trac scipy-tickets@scipy....
Sat Nov 27 20:08:14 CST 2010


#1223: splev returns wrong values outside of support.
--------------------------------+-------------------------------------------
  Reporter:  charris            |       Owner:  somebody
      Type:  defect             |      Status:  closed  
  Priority:  normal             |   Milestone:  0.9.0   
 Component:  scipy.interpolate  |     Version:  0.7.0   
Resolution:  fixed              |    Keywords:          
--------------------------------+-------------------------------------------
Changes (by charris):

  * status:  new => closed
  * resolution:  => fixed


Old description:

> {{{
> In [32]: rep
> Out[32]:
> (array([-1. , -1. , -1. , -1. , -0.5,  0. ,  0.5,  1. ,  1. ,  1. ,  1.
> ]),
>  array([ 1.,  1.,  1.,  1.,  1.,  1.,  1.,  0.,  0.,  0.,  0.]),
>  3)
>
> In [33]: fit.splev(2,rep)
> Out[33]: 0.99999999999998579
>
> }}}
>
> The value should be zero for any point not in [-1, 1].

New description:

 {{{
 In [32]: rep
 Out[32]:
 (array([-1. , -1. , -1. , -1. , -0.5,  0. ,  0.5,  1. ,  1. ,  1. ,  1.
 ]),
  array([ 1.,  1.,  1.,  1.,  1.,  1.,  1.,  0.,  0.,  0.,  0.]),
  3)

 In [33]: fit.splev(2,rep)
 Out[33]: 0.99999999999998579

 }}}

 The value should be zero for any point not in [-1, 1].

--

Comment:

 I fixed this by adding a keyword. Sorry about not closing the ticket.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1223#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list