[Scipy-tickets] [SciPy] #424: hyp2f1 gives wrong value for specific values in scpy 0.5.2

SciPy scipy-tickets@scipy....
Thu May 24 19:29:09 CDT 2007


#424: hyp2f1 gives wrong value for specific values in scpy 0.5.2
---------------------+------------------------------------------------------
 Reporter:  peridot  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:          
Component:  Other    |     Version:          
 Severity:  normal   |    Keywords:          
---------------------+------------------------------------------------------
 Maple verifies that the function is about right for nearby values, but
 hyp2f1(1.5,-0.5,1,-10) gives a huge, incorrect value.
 {{{
 In [33]: hyp2f1(1.5,-0.5,1,-10)
 Out[33]: 1.79769313486e+308

 In [34]: hyp2f1(1.5,-0.49999,1,-10)
 Out[34]: 4.12989582971

 In [35]: hyp2f1(1.5,-0.50001,1,-10)
 Out[35]: 4.13012372639

 In [36]: hyp2f1(1.499999,-0.5,1,-10)
 Out[36]: 4.13000828502

 In [37]: hyp2f1(1.500001,-0.5,1,-10)
 Out[37]: 4.13001152797

 In [38]: hyp2f1(1.5,-0.5,2,-10)
 Out[38]: 1.79769313486e+308

 In [39]: hyp2f1(1.5,-0.5,1,-20)
 Out[39]: 1.79769313486e+308

 }}}
 and
 {{{
 In [32]: scipy.__version__
 Out[32]: '0.5.2'
 }}}

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


More information about the Scipy-tickets mailing list