Product of an empty sequence
Ivan Vilata i Balaguer
ivilata at carabos.com
Thu Oct 19 11:39:15 EDT 2006
En/na Travis Oliphant ha escrit::
> Ivan Vilata i Balaguer wrote:
>> 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.
>
> It's the identity for the multiplication ufunc.
OK, I guess that means it's something like an implicit ``initializer``
(as pointed by Alan) to ufunc reductions. Thanks! ::
>> (BTW, the definitions of ``prod()`` and ``product()`` are still
>> identical as noted by Sebastian Haase some time ago.)
>>
> Is this a problem?
No, but it also caught my eye. :)
::
Ivan Vilata i Balaguer >qo< http://www.carabos.com/
Cárabos Coop. V. V V Enjoy Data
""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 309 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20061019/74f32bea/attachment-0001.sig>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
More information about the NumPy-Discussion
mailing list