From: Ivan V. i B. <iv...@ca...> - 2006-10-19 11:59:56
|
Today I was surprised by this:: >>> import numpy >>> numpy.__version__ '1.0.dev3341' >>> numpy.prod(()) 1.0 Wouldn't be 0.0 a more natural answer? I understand that 1 is neutral on product operations, but I still can't see why 1.0 is a better answer. Sorry for the clueless question, but I have searched lists, docstrings and web and found nothing about this. (BTW, the definitions of ``prod()`` and ``product()`` are still identical as noted by Sebastian Haase some time ago.) :: Ivan Vilata i Balaguer >qo< http://www.carabos.com/ C=C3=A1rabos Coop. V. V V Enjoy Data "" |