[Scilab-users] undocumented behavior of sum(), prod() and type()

Federico Miyara fmiyara at fceia.unr.edu.ar
Tue Feb 11 18:31:44 CET 2020


Samuel:

Sounds reasonable!

Thanks,

Federico


On 11/02/2020 07:13, Samuel Gougeon wrote:
> Le 11/02/2020 à 02:37, Federico Miyara a écrit :
>>
>> .../...
>> But is there a rationale for sum([])==0 and yet cumsum([])==[]?
>
>
> We expect a scalar from sum([]), while from cumsum([]) we expect an 
> array with the same size than the input array.
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200211/c28dea8a/attachment.htm>


More information about the users mailing list