Menu

#424 PYTHON: numpy.std - different results for float and double

v1.0 (example)
closed
nobody
None
5
2018-04-16
2011-08-26
No

GDL> print, python('numpy', 'std', [1,2,3,4,5,6.])
1.7078251
GDL> print, python('numpy', 'std', [1,2,3,4,5,6d])
1.1547005

and sometimes...:

GDL> print, python('numpy', 'std', [1,2,3,4,5,6d])
2.1622551
GDL> print, python('numpy', 'std', [1,2,3,4,5,6d])
Warning: overflow encountered in multiply
inf

Discussion

  • Sylwester Arabas

    • status: open --> closed
    • Group: --> v1.0 (example)
     
  • Sylwester Arabas

    works in 0.9.8

     

Log in to post a comment.