[SciPy-user] linear_least_squares: OverFlow error

massimo sandal massimo.sandal at unibo.it
Thu Jun 8 10:08:02 CDT 2006


Hi,
I upgraded today to latest numpy (0.9.8) and matplotlib (0.87.3).
I still have the same error (upgraded code in snippet):

>> ---------
>> import matplotlib.numerix as nx
>>
>> contact_x_points=nx.array(x_points[left_bound:right_bound])
>> contact_y_points=nx.array(y_points[left_bound:right_bound])
>>
>> A=nx.ones((len(contact_x_points),2))
>> A[:,0]=contact_x_points 
>> result=nx.linalg.lstsq(A,contact_y_points)
>> ---------
>>
>> ...but when I run, it crashes with:
>>
  >>    result=nx.linalg.lstsq(A, contact_y_points)
  >>  File "/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py",
line >>  457, in lstsq
  >>    nlvl = max( 0, int( math.log( float(min( m,n ))/2. ) ) + 1 )
  >>  OverflowError: math range error

any hint?

m.

-- 
Massimo Sandal
University of Bologna
Department of Biochemistry "G.Moruzzi"

snail mail:
Via Irnerio 48, 40126 Bologna, Italy

email:
massimo.sandal at unibo.it

tel: +39-051-2094388
fax: +39-051-2094387

-------------- next part --------------
A non-text attachment was scrubbed...
Name: massimo.sandal.vcf
Type: text/x-vcard
Size: 274 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20060608/895c3db9/massimo.sandal.vcf


More information about the SciPy-user mailing list