[Scipy-tickets] [SciPy] #495: numpy.float64*poly1d = array

SciPy scipy-tickets@scipy....
Wed Sep 5 19:54:55 CDT 2007


#495: numpy.float64*poly1d = array
------------------------+---------------------------------------------------
 Reporter:  ryankrauss  |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  0.6     
Component:  Other       |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 I ran into a problem with multiplying a float by a poly1d and getting an
 array instead of a poly1d returned.  It only actually happens if
 multiplying by a numpy.float64 and not just a regular float or int

 temp = poly1d([1.0,2.0])
 temp*10#<-- This is fine, returns poly1d
 10*temp#<-- returns poly1d
 10.0*temp#<-- returns poly1d
 numpy.float64(10.0)*temp#<-- returns array of coeffs

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


More information about the Scipy-tickets mailing list