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

SciPy Trac scipy-tickets@scipy....
Wed Jul 7 14:33:22 CDT 2010


#1223: splev returns wrong values outside of support.
---------------------+------------------------------------------------------
 Reporter:  charris  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:  0.9.0   
Component:  Other    |     Version:  0.7.0   
 Keywords:           |  
---------------------+------------------------------------------------------
 {{{
 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].

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


More information about the Scipy-tickets mailing list